diff --git a/external/postgresql/ExternalProject_postgresql.mk b/external/postgresql/ExternalProject_postgresql.mk index fc4342c60f93..ba462a34a1a1 100644 --- a/external/postgresql/ExternalProject_postgresql.mk +++ b/external/postgresql/ExternalProject_postgresql.mk @@ -31,7 +31,7 @@ $(call gb_ExternalProject_get_state_target,postgresql,build) : else postgresql_CPPFLAGS := $(ZLIB_CFLAGS) -postgresql_LDFLAGS := +postgresql_LDFLAGS := $(LDFLAGS) ifeq ($(SYSTEM_ZLIB),) postgresql_LDFLAGS += $(ZLIB_LIBS)