diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 13985e8a5424..e49b814bcbac 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -66,7 +66,7 @@ ifeq ($(SYSTEM_JPEG),YES) define gb_LinkTarget__use_jpeg $(call gb_LinkTarget_add_libs,$(1),-ljpeg) $(call gb_LinkTarget_set_ldflags,$(1),\ - $$(filter-out -L/usr/lib/jvm%,$$(LDFLAGS)) \ + $$(filter-out -L/usr/lib/jvm%,$$(T_LDFLAGS)) \ ) endef