summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-28 12:25:50 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-28 16:49:08 +0200
commit80374355ab96fa73f2aee8971195faf3cf5985f5 (patch)
treefe4aa72179798af1957c3be8948eff18c6f308e9
parent3c41244209386e22b34cb8da2267383e0238e0ff (diff)
gbuild: gb_Library_PLAINLIBS_NONE cleanup for unxgcc/solaris
Change-Id: Ia7f64bdd0fd81c5dcc08d828db4602b65e2da949
-rw-r--r--RepositoryExternal.mk6
-rw-r--r--bridges/Library_gcc3_aix_powerpc.mk5
-rw-r--r--bridges/Library_gcc3_ios_arm.mk5
-rw-r--r--bridges/Library_gcc3_linux_alpha.mk5
-rw-r--r--bridges/Library_gcc3_linux_arm.mk9
-rw-r--r--bridges/Library_gcc3_linux_hppa.mk5
-rw-r--r--bridges/Library_gcc3_linux_ia64.mk5
-rw-r--r--bridges/Library_gcc3_linux_intel.mk9
-rw-r--r--bridges/Library_gcc3_linux_m68k.mk5
-rw-r--r--bridges/Library_gcc3_linux_mips.mk9
-rw-r--r--bridges/Library_gcc3_linux_powerpc.mk5
-rw-r--r--bridges/Library_gcc3_linux_powerpc64.mk5
-rw-r--r--bridges/Library_gcc3_linux_s390.mk5
-rw-r--r--bridges/Library_gcc3_linux_s390x.mk5
-rw-r--r--bridges/Library_gcc3_linux_sparc.mk5
-rw-r--r--bridges/Library_gcc3_linux_x86-64.mk5
-rw-r--r--bridges/Library_gcc3_solaris_intel.mk5
-rw-r--r--bridges/Library_gcc3_solaris_sparc.mk5
-rw-r--r--canvas/Library_cairocanvas.mk4
-rw-r--r--extensions/Executable_nsplugin.mk17
-rw-r--r--extensions/Library_scn.mk4
-rw-r--r--framework/Library_lomenubar.mk5
-rw-r--r--neon/Library_neon.mk4
-rw-r--r--padmin/Executable_spadmin.bin.mk4
-rw-r--r--padmin/Library_spa.mk4
-rw-r--r--pyuno/Library_pyuno_wrapper.mk4
-rw-r--r--sal/Library_sal.mk14
-rw-r--r--shell/Executable_gnome_open_url.mk4
-rw-r--r--slideshow/Library_OGLTrans.mk8
-rw-r--r--solenv/gbuild/platform/solaris.mk14
-rw-r--r--solenv/gbuild/platform/unxgcc.mk12
-rw-r--r--toolkit/Library_tk.mk4
-rw-r--r--ucb/Library_ucpdav1.mk8
-rw-r--r--vcl/Library_desktop_detector.mk11
-rw-r--r--vcl/Library_vclplug_gen.mk11
-rw-r--r--vcl/Library_vclplug_gtk.mk11
-rw-r--r--vcl/Library_vclplug_gtk3.mk11
-rw-r--r--vcl/Library_vclplug_kde.mk11
-rw-r--r--vcl/Library_vclplug_kde4.mk11
-rw-r--r--vcl/Library_vclplug_tde.mk11
-rw-r--r--xmlsecurity/Library_xsec_xmlsec.mk4
41 files changed, 173 insertions, 121 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index 2da039709050..2a5585e0b8a7 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -914,9 +914,9 @@ $(call gb_LinkTarget_use_static_libraries,$(1),\
ssl \
)
ifeq ($(OS),SOLARIS)
-$(call gb_LinkTarget_use_libraries,$(1),\
- nsl \
- socket \
+$(call gb_LinkTarget_add_libs,$(1),\
+ -lnsl \
+ -lsocket \
)
endif
endif
diff --git a/bridges/Library_gcc3_aix_powerpc.mk b/bridges/Library_gcc3_aix_powerpc.mk
index 4cf7a7048526..0b541926e2b1 100644
--- a/bridges/Library_gcc3_aix_powerpc.mk
+++ b/bridges/Library_gcc3_aix_powerpc.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_ios_arm.mk b/bridges/Library_gcc3_ios_arm.mk
index e121354bbf27..6744aa4c8863 100644
--- a/bridges/Library_gcc3_ios_arm.mk
+++ b/bridges/Library_gcc3_ios_arm.mk
@@ -40,9 +40,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_alpha.mk b/bridges/Library_gcc3_linux_alpha.mk
index 22cd307a852b..77d331d390c3 100644
--- a/bridges/Library_gcc3_linux_alpha.mk
+++ b/bridges/Library_gcc3_linux_alpha.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_arm.mk b/bridges/Library_gcc3_linux_arm.mk
index ae0df1bad934..6a0fcba73cb2 100644
--- a/bridges/Library_gcc3_linux_arm.mk
+++ b/bridges/Library_gcc3_linux_arm.mk
@@ -36,11 +36,14 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+ifneq ($(OS),ANDROID)
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+endif
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- $(if $(filter-out ANDROID,$(OS)),\
- dl \
- ) \
sal \
))
diff --git a/bridges/Library_gcc3_linux_hppa.mk b/bridges/Library_gcc3_linux_hppa.mk
index 8aa77b5df83f..fea698d9f4ad 100644
--- a/bridges/Library_gcc3_linux_hppa.mk
+++ b/bridges/Library_gcc3_linux_hppa.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_ia64.mk b/bridges/Library_gcc3_linux_ia64.mk
index 8f8f61c00bcd..6f71829dc9f3 100644
--- a/bridges/Library_gcc3_linux_ia64.mk
+++ b/bridges/Library_gcc3_linux_ia64.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_intel.mk b/bridges/Library_gcc3_linux_intel.mk
index 526a1c95b322..97a37033f30a 100644
--- a/bridges/Library_gcc3_linux_intel.mk
+++ b/bridges/Library_gcc3_linux_intel.mk
@@ -39,11 +39,14 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
) \
))
+ifneq ($(OS),ANDROID)
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+endif
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- $(if $(filter-out ANDROID,$(OS)),\
- dl \
- ) \
sal \
))
diff --git a/bridges/Library_gcc3_linux_m68k.mk b/bridges/Library_gcc3_linux_m68k.mk
index db74e2a26126..5175d374246b 100644
--- a/bridges/Library_gcc3_linux_m68k.mk
+++ b/bridges/Library_gcc3_linux_m68k.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_mips.mk b/bridges/Library_gcc3_linux_mips.mk
index 4cd01957c3dd..91613d9ddcd4 100644
--- a/bridges/Library_gcc3_linux_mips.mk
+++ b/bridges/Library_gcc3_linux_mips.mk
@@ -36,11 +36,14 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+ifneq ($(OS),ANDROID)
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+endif
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- $(if $(filter-out ANDROID,$(OS)),\
- dl \
- ) \
sal \
))
diff --git a/bridges/Library_gcc3_linux_powerpc.mk b/bridges/Library_gcc3_linux_powerpc.mk
index 0ae99a60e916..cbf62694e062 100644
--- a/bridges/Library_gcc3_linux_powerpc.mk
+++ b/bridges/Library_gcc3_linux_powerpc.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_powerpc64.mk b/bridges/Library_gcc3_linux_powerpc64.mk
index 037d4054599d..acb1f3f1a3c9 100644
--- a/bridges/Library_gcc3_linux_powerpc64.mk
+++ b/bridges/Library_gcc3_linux_powerpc64.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_s390.mk b/bridges/Library_gcc3_linux_s390.mk
index cd9dbf3444f4..2624e9e176d5 100644
--- a/bridges/Library_gcc3_linux_s390.mk
+++ b/bridges/Library_gcc3_linux_s390.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_s390x.mk b/bridges/Library_gcc3_linux_s390x.mk
index a04ebad91250..d2400e98b157 100644
--- a/bridges/Library_gcc3_linux_s390x.mk
+++ b/bridges/Library_gcc3_linux_s390x.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_sparc.mk b/bridges/Library_gcc3_linux_sparc.mk
index 778cbb12a6e8..5b2a9dc5bc19 100644
--- a/bridges/Library_gcc3_linux_sparc.mk
+++ b/bridges/Library_gcc3_linux_sparc.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_linux_x86-64.mk b/bridges/Library_gcc3_linux_x86-64.mk
index 244bdda8dae2..b1e596778730 100644
--- a/bridges/Library_gcc3_linux_x86-64.mk
+++ b/bridges/Library_gcc3_linux_x86-64.mk
@@ -41,9 +41,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
) \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_solaris_intel.mk b/bridges/Library_gcc3_solaris_intel.mk
index c333ca8d3db0..f3175faea884 100644
--- a/bridges/Library_gcc3_solaris_intel.mk
+++ b/bridges/Library_gcc3_solaris_intel.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/bridges/Library_gcc3_solaris_sparc.mk b/bridges/Library_gcc3_solaris_sparc.mk
index 3829f219b8d9..5dab7c0345d0 100644
--- a/bridges/Library_gcc3_solaris_sparc.mk
+++ b/bridges/Library_gcc3_solaris_sparc.mk
@@ -36,9 +36,12 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-strict-aliasing \
))
+$(eval $(call gb_Library_add_libs,gcc3_uno,\
+ -ldl \
+))
+
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
- dl \
sal \
))
diff --git a/canvas/Library_cairocanvas.mk b/canvas/Library_cairocanvas.mk
index 1bfb26f86c8c..b85321f1b0d6 100644
--- a/canvas/Library_cairocanvas.mk
+++ b/canvas/Library_cairocanvas.mk
@@ -116,8 +116,8 @@ $(eval $(call gb_Library_add_exception_objects,cairocanvas,\
))
# freetype? fontconfig? -> test on Solaris
-$(eval $(call gb_Library_use_libraries,cairocanvas,\
- X11 \
+$(eval $(call gb_Library_add_libs,cairocanvas,\
+ -lX11 \
))
$(eval $(call gb_Library_use_externals,cairocanvas,\
Xrender \
diff --git a/extensions/Executable_nsplugin.mk b/extensions/Executable_nsplugin.mk
index da860e821e7c..1117bce24681 100644
--- a/extensions/Executable_nsplugin.mk
+++ b/extensions/Executable_nsplugin.mk
@@ -42,19 +42,22 @@ $(eval $(call gb_Executable_use_static_libraries,nsplugin,\
npsoenv \
))
-$(eval $(call gb_Executable_use_libraries,nsplugin,\
- cppu \
- cppuhelper \
- sal \
+$(eval $(call gb_Executable_add_libs,nsplugin,\
$(if $(filter $(OS),LINUX), \
- dl \
+ -ldl \
) \
$(if $(filter $(OS),SOLARIS), \
- nsl \
- socket \
+ -lnsl \
+ -lsocket \
) \
))
+$(eval $(call gb_Executable_use_libraries,nsplugin,\
+ cppu \
+ cppuhelper \
+ sal \
+))
+
ifeq ($(GUI),WNT)
$(eval $(call gb_Executable_add_exception_objects,nsplugin,\
extensions/source/nsplugin/source/nsp_windows \
diff --git a/extensions/Library_scn.mk b/extensions/Library_scn.mk
index 75872b73465f..a72cabcb6371 100644
--- a/extensions/Library_scn.mk
+++ b/extensions/Library_scn.mk
@@ -69,8 +69,8 @@ $(eval $(call gb_Library_add_exception_objects,scn,\
extensions/source/scanner/scanunx \
))
ifeq ($(OS),LINUX)
-$(eval $(call gb_Library_use_libraries,scn,\
- dl \
+$(eval $(call gb_Library_add_libs,scn,\
+ -ldl \
))
endif
endif
diff --git a/framework/Library_lomenubar.mk b/framework/Library_lomenubar.mk
index b9f8c5fef6fa..ad4742f70e49 100644
--- a/framework/Library_lomenubar.mk
+++ b/framework/Library_lomenubar.mk
@@ -43,7 +43,10 @@ $(eval $(call gb_Library_use_libraries,lomenubar,\
cppu \
cppuhelper \
comphelper \
- X11 \
+))
+
+$(eval $(call gb_Library_add_libs,lomenubar,\
+ -lX11 \
))
$(eval $(call gb_Library_add_standard_system_libs,lomenubar))
diff --git a/neon/Library_neon.mk b/neon/Library_neon.mk
index dc4c4345bb1f..17ac265b0aed 100644
--- a/neon/Library_neon.mk
+++ b/neon/Library_neon.mk
@@ -69,8 +69,8 @@ $(eval $(call gb_Library_add_generated_cobjects,neon,\
endif
ifeq ($(OS),LINUX)
-$(eval $(call gb_Library_use_libraries,neon,\
- dl \
+$(eval $(call gb_Library_add_libs,neon,\
+ -ldl \
))
endif
diff --git a/padmin/Executable_spadmin.bin.mk b/padmin/Executable_spadmin.bin.mk
index 2450e9889a52..7d4b08ab5e69 100644
--- a/padmin/Executable_spadmin.bin.mk
+++ b/padmin/Executable_spadmin.bin.mk
@@ -57,8 +57,8 @@ $(eval $(call gb_Executable_add_libs,spadmin.bin,\
endif
ifeq ($(OS),LINUX)
-$(eval $(call gb_Executable_use_libraries,spadmin.bin,\
- dl \
+$(eval $(call gb_Executable_add_libs,spadmin.bin,\
+ -ldl \
))
endif
diff --git a/padmin/Library_spa.mk b/padmin/Library_spa.mk
index 42bb40dd7b48..45c7b5c76729 100644
--- a/padmin/Library_spa.mk
+++ b/padmin/Library_spa.mk
@@ -60,8 +60,8 @@ $(eval $(call gb_Library_add_libs,spa,\
endif
ifeq ($(OS),LINUX)
-$(eval $(call gb_Library_use_libraries,spa,\
- dl \
+$(eval $(call gb_Library_add_libs,spa,\
+ -ldl \
))
endif
diff --git a/pyuno/Library_pyuno_wrapper.mk b/pyuno/Library_pyuno_wrapper.mk
index 0f46beaac557..8ec4a1088a85 100644
--- a/pyuno/Library_pyuno_wrapper.mk
+++ b/pyuno/Library_pyuno_wrapper.mk
@@ -51,8 +51,8 @@ endif
ifneq ($(GUI)$(COM),WNTMSC)
ifeq ($(filter DRAGONFLY FREEBSD NETBSD OPENBSD MACOSX,$(OS)),)
-$(eval $(call gb_Library_use_libraries,pyuno_wrapper,\
- dl \
+$(eval $(call gb_Library_add_libs,pyuno_wrapper,\
+ -ldl \
))
endif
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index 1d6f75431cca..36ace0d32738 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -57,13 +57,6 @@ $(eval $(call gb_Library_add_defs,sal,\
))
$(eval $(call gb_Library_use_libraries,sal,\
- $(if $(filter $(OS),LINUX), \
- dl \
- ) \
- $(if $(filter $(OS),SOLARIS), \
- nsl \
- socket \
- ) \
$(if $(filter $(OS),WNT), \
advapi32 \
comdlg32 \
@@ -85,6 +78,13 @@ $(eval $(call gb_Library_add_libs,sal,\
-lpthread \
) \
) \
+ $(if $(filter $(OS),LINUX), \
+ -ldl \
+ ) \
+ $(if $(filter $(OS),SOLARIS), \
+ -lnsl \
+ -lsocket \
+ ) \
))
$(eval $(call gb_Library_add_standard_system_libs,sal))
diff --git a/shell/Executable_gnome_open_url.mk b/shell/Executable_gnome_open_url.mk
index 68bf0a186f1d..0353ffa82344 100644
--- a/shell/Executable_gnome_open_url.mk
+++ b/shell/Executable_gnome_open_url.mk
@@ -28,8 +28,8 @@
$(eval $(call gb_Executable_Executable,gnome-open-url.bin))
ifeq ($(filter DRAGONFLY FREEBSD NETBSD OPENBSD MACOSX,$(OS)),)
-$(eval $(call gb_Executable_use_libraries,gnome-open-url.bin,\
- dl \
+$(eval $(call gb_Executable_add_libs,gnome-open-url.bin,\
+ -ldl \
))
endif
diff --git a/slideshow/Library_OGLTrans.mk b/slideshow/Library_OGLTrans.mk
index c3c2b6d768c0..cf911a1d4f2a 100644
--- a/slideshow/Library_OGLTrans.mk
+++ b/slideshow/Library_OGLTrans.mk
@@ -100,10 +100,10 @@ $(eval $(call gb_Library_add_exception_objects,OGLTrans,\
slideshow/source/engine/OGLTrans/unx/OGLTrans_TransitionImpl \
))
-$(eval $(call gb_Library_use_libraries,OGLTrans,\
- GL \
- GLU \
- X11 \
+$(eval $(call gb_Library_add_libs,OGLTrans,\
+ -lGL \
+ -lGLU \
+ -lX11 \
))
endif
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk
index ba4b4ab005c4..4b26f028fca9 100644
--- a/solenv/gbuild/platform/solaris.mk
+++ b/solenv/gbuild/platform/solaris.mk
@@ -241,20 +241,6 @@ gb_STDLIBS := \
-lnsl \
-lsocket \
-gb_Library_PLAINLIBS_NONE += \
- dl \
- GL \
- GLU \
- ICE \
- m \
- nsl \
- pthread \
- socket \
- SM \
- ICE \
- X11 \
- Xext \
-
gb_Library_FILENAMES := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_OOOEXT)) \
$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index 4946cf29d55e..0957e4a3d71b 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -239,18 +239,6 @@ gb_Library_RTEXT := gcc3$(gb_Library_PLAINEXT)
gb_Library_OOOEXT := $(gb_Library_DLLPOSTFIX)$(gb_Library_PLAINEXT)
gb_Library_UNOEXT := .uno$(gb_Library_PLAINEXT)
-gb_Library_PLAINLIBS_NONE += \
- dl \
- GL \
- GLU \
- ICE \
- m \
- pthread \
- SM \
- ICE \
- X11 \
- Xext \
-
gb_Library_FILENAMES := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_OOOEXT)) \
$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):$(gb_Library_SYSPRE)$(lib)$(gb_Library_PLAINEXT)) \
diff --git a/toolkit/Library_tk.mk b/toolkit/Library_tk.mk
index 20f97124e355..d1e1fee6fe98 100644
--- a/toolkit/Library_tk.mk
+++ b/toolkit/Library_tk.mk
@@ -142,8 +142,8 @@ endif
ifneq ($(GUIBASE),headless)
ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
-$(eval $(call gb_Library_use_libraries,tk,\
- X11 \
+$(eval $(call gb_Library_add_libs,tk,\
+ -lX11 \
))
endif
endif
diff --git a/ucb/Library_ucpdav1.mk b/ucb/Library_ucpdav1.mk
index e0b9801e2672..b6149a1dd3e8 100644
--- a/ucb/Library_ucpdav1.mk
+++ b/ucb/Library_ucpdav1.mk
@@ -80,10 +80,10 @@ $(eval $(call gb_Library_use_libraries,ucpdav1,\
endif
ifeq ($(OS),SOLARIS)
-$(eval $(call gb_Library_use_libraries,ucpdav1,\
- dl \
- nsl \
- socket \
+$(eval $(call gb_Library_add_libs,ucpdav1,\
+ -ldl \
+ -lnsl \
+ -lsocket \
))
endif
diff --git a/vcl/Library_desktop_detector.mk b/vcl/Library_desktop_detector.mk
index a155c3e0d281..6ade59bbd86a 100644
--- a/vcl/Library_desktop_detector.mk
+++ b/vcl/Library_desktop_detector.mk
@@ -55,10 +55,6 @@ $(eval $(call gb_Library_use_libraries,desktop_detector,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,desktop_detector))
@@ -68,6 +64,13 @@ $(eval $(call gb_Library_use_externals,desktop_detector,\
icuuc \
))
+$(eval $(call gb_Library_add_libs,desktop_detector,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,desktop_detector,\
vcl/unx/generic/desktopdetect/desktopdetector \
))
diff --git a/vcl/Library_vclplug_gen.mk b/vcl/Library_vclplug_gen.mk
index 67a440b18e54..67795ef553a9 100644
--- a/vcl/Library_vclplug_gen.mk
+++ b/vcl/Library_vclplug_gen.mk
@@ -49,10 +49,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_gen,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_gen))
@@ -64,6 +60,13 @@ $(eval $(call gb_Library_use_externals,vclplug_gen,\
Xrender \
))
+$(eval $(call gb_Library_add_libs,vclplug_gen,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_gen,\
vcl/unx/generic/app/i18n_cb \
vcl/unx/generic/app/i18n_ic \
diff --git a/vcl/Library_vclplug_gtk.mk b/vcl/Library_vclplug_gtk.mk
index 42ea2a485495..3fb0d8038b69 100644
--- a/vcl/Library_vclplug_gtk.mk
+++ b/vcl/Library_vclplug_gtk.mk
@@ -57,10 +57,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_gtk,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_gtk))
@@ -73,6 +69,13 @@ $(eval $(call gb_Library_use_externals,vclplug_gtk,\
icuuc \
))
+$(eval $(call gb_Library_add_libs,vclplug_gtk,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_gtk,\
vcl/unx/gtk/a11y/atkaction \
vcl/unx/gtk/a11y/atkbridge \
diff --git a/vcl/Library_vclplug_gtk3.mk b/vcl/Library_vclplug_gtk3.mk
index b906fcf64bd5..f924e80d8c33 100644
--- a/vcl/Library_vclplug_gtk3.mk
+++ b/vcl/Library_vclplug_gtk3.mk
@@ -69,10 +69,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_gtk3,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_gtk3))
@@ -81,6 +77,13 @@ $(eval $(call gb_Library_use_externals,vclplug_gtk3,\
dbus \
))
+$(eval $(call gb_Library_use_libraries,vclplug_gtk3,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_gtk3,\
vcl/unx/gtk3/a11y/gtk3atkaction \
vcl/unx/gtk3/a11y/gtk3atkbridge \
diff --git a/vcl/Library_vclplug_kde.mk b/vcl/Library_vclplug_kde.mk
index bfcf782345b4..d61717c00e2c 100644
--- a/vcl/Library_vclplug_kde.mk
+++ b/vcl/Library_vclplug_kde.mk
@@ -58,10 +58,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_kde,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_kde))
@@ -72,6 +68,13 @@ $(eval $(call gb_Library_use_externals,vclplug_kde,\
kde \
))
+$(eval $(call gb_Library_add_libs,vclplug_kde,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_kde,\
vcl/unx/kde/kdedata \
vcl/unx/kde/salnativewidgets-kde \
diff --git a/vcl/Library_vclplug_kde4.mk b/vcl/Library_vclplug_kde4.mk
index 9fd110fc506b..f8450203ccd2 100644
--- a/vcl/Library_vclplug_kde4.mk
+++ b/vcl/Library_vclplug_kde4.mk
@@ -56,10 +56,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_kde4,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_kde4))
@@ -70,6 +66,13 @@ $(eval $(call gb_Library_use_externals,vclplug_kde4,\
kde4 \
))
+$(eval $(call gb_Library_add_libs,vclplug_kde4,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_kde4,\
vcl/unx/kde4/KDEData \
vcl/unx/kde4/KDE4FilePicker \
diff --git a/vcl/Library_vclplug_tde.mk b/vcl/Library_vclplug_tde.mk
index a55b8dd8025a..efd3daaff151 100644
--- a/vcl/Library_vclplug_tde.mk
+++ b/vcl/Library_vclplug_tde.mk
@@ -63,10 +63,6 @@ $(eval $(call gb_Library_use_libraries,vclplug_tde,\
jvmaccess \
cppu \
sal \
- X11 \
- Xext \
- SM \
- ICE \
))
$(eval $(call gb_Library_add_standard_system_libs,vclplug_tde))
@@ -76,6 +72,13 @@ $(eval $(call gb_Library_use_externals,vclplug_tde,\
icuuc \
))
+$(eval $(call gb_Library_add_libs,vclplug_tde,\
+ -lX11 \
+ -lXext \
+ -lSM \
+ -lICE \
+))
+
$(eval $(call gb_Library_add_exception_objects,vclplug_tde,\
vcl/unx/kde/kdedata \
vcl/unx/kde/salnativewidgets-kde \
diff --git a/xmlsecurity/Library_xsec_xmlsec.mk b/xmlsecurity/Library_xsec_xmlsec.mk
index 41cbfafcaad1..3966e76e4052 100644
--- a/xmlsecurity/Library_xsec_xmlsec.mk
+++ b/xmlsecurity/Library_xsec_xmlsec.mk
@@ -181,8 +181,8 @@ $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
endif # ifeq ($(SYSTEM_NSS),YES)
ifeq ($(OS),SOLARIS)
-$(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
- dl \
+$(eval $(call gb_Library_add_libs,xsec_xmlsec,\
+ -ldl \
))
endif