summarylogtreecommitdiffstats
path: root/JSPilotingNewAPI-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'JSPilotingNewAPI-Makefile')
-rw-r--r--JSPilotingNewAPI-Makefile5
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 $< >$@