diff options
author | Alexandre Iooss | 2016-08-22 14:12:24 +0200 |
---|---|---|
committer | Alexandre Iooss | 2016-08-22 14:12:24 +0200 |
commit | e9033ec3719fdac38427d1d6d0d2ece0513953f0 (patch) | |
tree | 553faa92b6d56375ac28665823afb6f43a9812b8 /libarmavlink-Makefile | |
parent | 9bdca0325cfbe6d4763d3c23c08844eb313e810f (diff) | |
download | aur-e9033ec3719fdac38427d1d6d0d2ece0513953f0.tar.gz |
Linked libs
Diffstat (limited to 'libarmavlink-Makefile')
-rw-r--r-- | libarmavlink-Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libarmavlink-Makefile b/libarmavlink-Makefile index c0d514104599..583977160901 100644 --- a/libarmavlink-Makefile +++ b/libarmavlink-Makefile @@ -1,6 +1,7 @@ CC = gcc CFLAGS = -fPIC -Wall -Wextra -O2 -g -IIncludes -Igenerated -DHAVE_CONFIG_H -LDFLAGS = -shared +LIBS = -larsal +LDFLAGS = -shared -Wl,-O1,-as-needed,-no-undefined,-z,relro,-z,now RM = rm -f TARGET_LIB = libarmavlink.so @@ -16,7 +17,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 $< >$@ |