Pass LDFLAGS after the objects when creating the sharedlib, otherwise

-Wl,--as-needed will think that zlib is not needed.
This commit is contained in:
Juan RP 2010-11-02 07:40:14 +01:00
parent 8d998948ef
commit 9c60862e0f

View File

@ -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