[Ab]use LDFLAGS rather than CFLAGS.
BDE tells me POSIX pretends `ld' as a directly callable entity does not exist.
This commit is contained in:
parent
d1bdfb40fd
commit
e20b0b7333
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96343
@ -34,7 +34,7 @@ INSTALL_PIC_ARCHIVE= yes
|
||||
XCC= ${CC}
|
||||
XCXX= ${CXX}
|
||||
|
||||
CFLAGS+= -nostdlib -fexceptions
|
||||
CFLAGS+= -fexceptions
|
||||
CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
|
||||
-DFINE_GRAINED_LIBRARIES
|
||||
.if ${OBJFORMAT} != aout
|
||||
@ -42,6 +42,7 @@ CFLAGS+= -D_PTHREADS -DGTHREAD_USE_WEAK
|
||||
.endif
|
||||
CFLAGS+= -I${.CURDIR}/../../usr.bin/cc/cc_tools \
|
||||
-I${GCCDIR}/config -I${GCCDIR} -I.
|
||||
LDFLAGS= -nostdlib
|
||||
|
||||
# Remove any objects from LIB2FUNCS and LIB2_DIVMOD_FUNCS that are
|
||||
# defined as optimized assembly code in LIB1ASMFUNCS.
|
||||
|
@ -225,7 +225,7 @@ ${SHLIB_NAME}: ${SOBJS}
|
||||
-o ${SHLIB_NAME} \
|
||||
`lorder ${SOBJS} | tsort -q` ${LDADD}
|
||||
.else
|
||||
@${CC} ${CFLAGS} -shared -Wl,-x \
|
||||
@${CC} ${LDFLAGS} -shared -Wl,-x \
|
||||
-o ${SHLIB_NAME} -Wl,-soname,${SONAME} \
|
||||
`lorder ${SOBJS} | tsort -q` ${LDADD}
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user