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:
parent
8d998948ef
commit
9c60862e0f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user