diff options
Diffstat (limited to 'BebopPilotingNewAPI-Makefile')
-rw-r--r-- | BebopPilotingNewAPI-Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BebopPilotingNewAPI-Makefile b/BebopPilotingNewAPI-Makefile index 3d176777d310..9f11d596c5eb 100644 --- a/BebopPilotingNewAPI-Makefile +++ b/BebopPilotingNewAPI-Makefile @@ -1,6 +1,7 @@ CC = gcc CFLAGS = -fPIC -Wall -Wextra -O2 -g -I. -LDFLAGS = -larsal -lncurses -larcontroller -lardiscovery +LIBS = -larsal -lncurses -larcontroller -lardiscovery +LDFLAGS = -Wl,-O1,-as-needed,-no-undefined,-z,relro,-z,now RM = rm -f TARGET_LIB = BebopPilotingNewAPI @@ -12,7 +13,7 @@ OBJS = $(SRCS:.c=.o) all: ${TARGET_LIB} $(TARGET_LIB): $(OBJS) - $(CC) ${LDFLAGS} -o $@ $^ + $(CC) ${LDFLAGS} -o $@ $^ ${LIBS} $(SRCS:.c=.d):%.d:%.c $(CC) $(CFLAGS) -MM $< >$@ |