From 3e974cbfc4b13b79f18e55cee04cf815cbbb604a Mon Sep 17 00:00:00 2001 From: andreincx Date: Wed, 25 Jan 2017 21:21:07 +0000 Subject: [PATCH] Remove linker optimisation directly in domake (for Mac OS X) git-svn-id: svn://ultimatepp.org/upp/trunk@10759 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppbox/Scripts/domake | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uppbox/Scripts/domake b/uppbox/Scripts/domake index 7a7adc481..103077e28 100755 --- a/uppbox/Scripts/domake +++ b/uppbox/Scripts/domake @@ -375,8 +375,14 @@ fi if [ "$platform" = "Darwin" ] then log_debug_info "Adjusting Makefile/uMakefile for Mac OS X" - sed -i -E -e 's/(-Wl,[^[:space:]]*)//g' uppsrc/Makefile - sed -i -E -e 's/(-Wl,[^[:space:]]*)//g' uppsrc/uMakefile + sed -i '' -E -e 's/(-Wl,[^[:space:]]*)//g' -e 's/-lrt//g' uppsrc/Makefile uppsrc/uMakefile + if [[ "$Macro" == *"-DflagNOGTK"* ]] + then + log_debug_info "Removing references to GTK+" + sed -i '' -E -e 's/-lgtk-x11-2.0//g' -e 's/-lgdk-x11-2.0//g' \ + -e 's/-latk-1.0//g' -e 's/-lgdk_pixbuf-2.0//g' -e 's/-lpangocairo-1.0//g' -e 's/-lpango-1.0//g' \ + -e 's/-lgobject-2.0//g' -e 's/-lgmodule-2.0//g' -e 's/-lglib-2.0//g' -e 's/-lnotify//g' uppsrc/Makefile uppsrc/uMakefile + fi fi if [ ! -f /usr/lib/libdl.so -a ! -f /usr/lib64/libdl.so ]