diff options
author | Alexandre Iooss | 2016-08-22 14:19:13 +0200 |
---|---|---|
committer | Alexandre Iooss | 2016-08-22 14:19:13 +0200 |
commit | c509c54673eed844b43bec3bb4ecc1c950053d8f (patch) | |
tree | 42eb9a2cb01c1d05f5d5ee8d640aa00bcff3c121 /JSPilotingNewAPI-Makefile | |
parent | 85b1d115363582c71ccd6a8586fa2a8580890d7c (diff) | |
download | aur-arsdk3-samples-git.tar.gz |
Linked libs
Diffstat (limited to 'JSPilotingNewAPI-Makefile')
-rw-r--r-- | JSPilotingNewAPI-Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/JSPilotingNewAPI-Makefile b/JSPilotingNewAPI-Makefile index d81d7373edfc..29d0c76ca438 100644 --- a/JSPilotingNewAPI-Makefile +++ b/JSPilotingNewAPI-Makefile @@ -1,6 +1,7 @@ CC = gcc CFLAGS = -fPIC -Wall -Wextra -O2 -g -I. -LDFLAGS = -larsal -lardiscovery -larcontroller -lncurses +LIBS = -larsal -lardiscovery -larcontroller -lncurses +LDFLAGS = -Wl,-O1,-as-needed,-no-undefined,-z,relro,-z,now RM = rm -f TARGET_LIB = JSPilotingNewAPI @@ -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 $< >$@ |