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:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user