From c007292ec3eedcf2b1ad673308fa42aad31a7333 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 8 May 2013 19:56:48 +0200 Subject: gbuild: gcc platforms: link with C compiler if no C++ files In 5589c72b88e502bfca045ae38af16c854afdd401 a problem due to linking pyuno_wrapper with g++ was fixed: the library should not have a dependency on libstdc++. It's possible to implement this in gbuild directly by checking whether there are any C++ input files. (apparently on GNU/Linux g++ implicitly links in libm too...) Change-Id: I04dce06f796e20047ce7f5eab65e6110c0244445 --- desktop/Executable_oosplash.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop') diff --git a/desktop/Executable_oosplash.mk b/desktop/Executable_oosplash.mk index 51657fe40d9f..1e75f647a987 100644 --- a/desktop/Executable_oosplash.mk +++ b/desktop/Executable_oosplash.mk @@ -55,6 +55,12 @@ $(eval $(call gb_Executable_use_externals,oosplash,\ endif +ifeq ($(OS),LINUX) +$(eval $(call gb_Executable_add_libs,oosplash,\ + -lm \ +)) +endif + ifeq ($(OS),SOLARIS) $(eval $(call gb_Executable_add_libs,oosplash,\ -- cgit