diff options
author | Alexandre Iooss | 2016-08-22 13:55:22 +0200 |
---|---|---|
committer | Alexandre Iooss | 2016-08-22 13:55:22 +0200 |
commit | 569928b8fc46b16686ae7e0de2075f30d87fab9f (patch) | |
tree | 5fabba874b2f63459c9fe5ec1aa613b08b02552f /libardiscovery-Makefile | |
parent | 8e3f240404e2d854b58532dbcebc0f5a6866a5b9 (diff) | |
download | aur-libardiscovery-git.tar.gz |
Linked libs
Diffstat (limited to 'libardiscovery-Makefile')
-rw-r--r-- | libardiscovery-Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libardiscovery-Makefile b/libardiscovery-Makefile index 635dd156c2cb..383efc132291 100644 --- a/libardiscovery-Makefile +++ b/libardiscovery-Makefile @@ -1,6 +1,7 @@ CC = gcc CFLAGS = -fPIC -Wall -Wextra -O2 -g -IIncludes -DHAVE_CONFIG_H -LDFLAGS = -shared +LIBS = -ljson-c -lavahi-client -lavahi-common -larsal -larnetworkal +LDFLAGS = -shared -Wl,-O1,-as-needed,-no-undefined,-z,relro,-z,now RM = rm -f TARGET_LIB = libardiscovery.so @@ -17,7 +18,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 $< >$@ |