From 9c60862e0f29ea21747e320be611a1633c26577e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 2 Nov 2010 07:40:14 +0100 Subject: [PATCH] Pass LDFLAGS after the objects when creating the sharedlib, otherwise -Wl,--as-needed will think that zlib is not needed. --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index dec60367..f818b29b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -66,7 +66,7 @@ $(OBJS): %.o: %.c libxbps.so: $(OBJS) $(LIBFETCH_OBJS) $(LIBPROP_OBJS) @printf " [CCLD]\t\t$@\n" - @$(CC) $(LDFLAGS) $^ -o $(LIBXBPS_SHLIB) + @$(CC) $^ $(LDFLAGS) -o $(LIBXBPS_SHLIB) @-ln -sf $(LIBXBPS_SHLIB) libxbps.so.$(LIBXBPS_MAJOR) @-ln -sf $(LIBXBPS_SHLIB) libxbps.so