From 8cf1d457cb73f8eea2504293c777431e6dac1675 Mon Sep 17 00:00:00 2001 From: logwang Date: Thu, 14 Sep 2017 15:25:07 +0800 Subject: [PATCH] Optimize makefile --- example/Makefile | 2 +- lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/Makefile b/example/Makefile index e97f3a725..9b9902865 100644 --- a/example/Makefile +++ b/example/Makefile @@ -21,4 +21,4 @@ all: .PHONY: clean clean: - rm -f *.o ${TARGET} + rm -f *.o ${TARGET} ${TARGET}_epoll diff --git a/lib/Makefile b/lib/Makefile index 6cd8c7635..4f35cf0f6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -376,7 +376,7 @@ all: libfstack.a # externally available. # libfstack.a: machine_includes ff_api.symlist ${MHEADERS} ${MSRCS} ${HOST_OBJS} ${ASM_OBJS} ${OBJS} - ${LD} -r -o $*.ro ${ASM_OBJS} ${OBJS} + ${LD} -d -r -o $*.ro ${ASM_OBJS} ${OBJS} nm $*.ro | grep -v ' U ' | cut -d ' ' -f 3 > $*_localize_list.tmp objcopy --localize-symbols=$*_localize_list.tmp $*.ro rm $*_localize_list.tmp