Fix Gentoo linking

This commit is contained in:
Anton Kochkov 2017-11-27 13:40:31 +08:00
parent 7ad0152b35
commit 598807c10e
3 changed files with 7 additions and 3 deletions

View File

@ -10,5 +10,5 @@ ALL_TARGETS+=${TARGET_8051}
${TARGET_8051}: ${OBJ_8051}
${CC} $(call libname,asm_8051) ${LDFLAGS} ${CFLAGS} \
-o asm_8051.${EXT_SO} ${OBJ_8051}
-o ${TARGET_8051} ${OBJ_8051}
endif

View File

@ -3,7 +3,10 @@ OBJ_LM32=asm_lm32.o
STATIC_OBJ+=${OBJ_LM32}
TARGET_LM32=asm_LM32.${EXT_SO}
ifeq ($(WITHPIC),1)
ALL_TARGETS+=${TARGET_LM32}
${TARGET_LM32}: ${OBJ_LM32}
${CC} ${LDFLAGS} ${CFLAGS} -o ${TARGET_LM32} ${OBJ_LM32}
${CC} $(call libname,asm_LM32) ${LDFLAGS} ${CFLAGS} \
-o ${TARGET_LM32} ${OBJ_LM32}
endif

View File

@ -9,5 +9,6 @@ ifeq ($(WITHPIC),1)
ALL_TARGETS+=${TARGET_PROPELLER}
${TARGET_PROPELLER}: ${OBJ_PROPELLER}
${CC} ${LDFLAGS} ${CFLAGS} -o ${TARGET_PROPELLER} ${OBJ_PROPELLER}
${CC} $(call libname,asm_propeller) ${LDFLAGS} ${CFLAGS} \
-o ${TARGET_PROPELLER} ${OBJ_PROPELLER}
endif