summaryrefslogtreecommitdiff
path: root/src/Makefile_Ecore.am
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2015-02-26 12:35:50 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2015-02-26 13:51:20 +0100
commit55ba0dfa4ba68b5bb568670b3b1dbd1360935528 (patch)
tree3b04578f7911f33b3420b66b2cb9a62b58a3f177 /src/Makefile_Ecore.am
parent009ec26460e8ccc0e5e2b09bb3718d1066209ec3 (diff)
build: Workaround an automake limitation during parallel install relinking
With this commit I'm finally able to use -j10 for make install on my machine. During install libtool does some relinking which can result in to broken linking if the dependencies are not handled correctly. Sadly automake has a problem with the automatic dependency handling during install with LTLIBRARIES which we use for all our modules. For the details please see this 4.5 years old bug report: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328 We are now setting the dependency manually to force automake to the right decision during install relinking. Speed improvement itself is not that high (make -j 1 compared to -j10): real 0m21.410s vs. real 0m17.066s The bigger benefit is the unified use of MAKEOPTS or normal -j X in all our build targets. I have seen quite some bug reports where -j was used for install target when it was used in the build target. Last but not least it helps me to unify some parts of the jenkins jobs and finally allows me to run distcheck with -j Which uses install internally and failed before. Which goes down from real 12m50.349s to real 5m52.120s.
Diffstat (limited to 'src/Makefile_Ecore.am')
-rw-r--r--src/Makefile_Ecore.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile_Ecore.am b/src/Makefile_Ecore.am
index 10e6a27..da7fa78 100644
--- a/src/Makefile_Ecore.am
+++ b/src/Makefile_Ecore.am
@@ -103,6 +103,12 @@ lib_ecore_libecore_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
103if WANT_SYSTEMD 103if WANT_SYSTEMD
104ecoresystemdpkgdir = $(libdir)/ecore/system/systemd/$(MODULE_ARCH) 104ecoresystemdpkgdir = $(libdir)/ecore/system/systemd/$(MODULE_ARCH)
105ecoresystemdpkg_LTLIBRARIES = modules/ecore/system/systemd/module.la 105ecoresystemdpkg_LTLIBRARIES = modules/ecore/system/systemd/module.la
106
107# Workaround for broken parallel install support in automake (relink issue)
108# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
109install_ecoresystemdpkgLTLIBRARIES = install-ecoresystemdpkgLTLIBRARIES
110$(install_ecoresystemdpkgLTLIBRARIES): install-libLTLIBRARIES
111
106modules_ecore_system_systemd_module_la_SOURCES = \ 112modules_ecore_system_systemd_module_la_SOURCES = \
107modules/ecore/system/systemd/ecore_system_systemd.c 113modules/ecore/system/systemd/ecore_system_systemd.c
108modules_ecore_system_systemd_module_la_CPPFLAGS = \ 114modules_ecore_system_systemd_module_la_CPPFLAGS = \
@@ -123,6 +129,12 @@ endif
123if ! HAVE_WIN32 129if ! HAVE_WIN32
124ecoreupowerpkgdir = $(libdir)/ecore/system/upower/$(MODULE_ARCH) 130ecoreupowerpkgdir = $(libdir)/ecore/system/upower/$(MODULE_ARCH)
125ecoreupowerpkg_LTLIBRARIES = modules/ecore/system/upower/module.la 131ecoreupowerpkg_LTLIBRARIES = modules/ecore/system/upower/module.la
132
133# Workaround for broken parallel install support in automake (relink issue)
134# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
135install_ecoreupowerpkgLTLIBRARIES = install-ecoreupowerpkgLTLIBRARIES
136$(install_ecoreupowerpkgLTLIBRARIES): install-libLTLIBRARIES
137
126modules_ecore_system_upower_module_la_SOURCES = \ 138modules_ecore_system_upower_module_la_SOURCES = \
127modules/ecore/system/upower/ecore_system_upower.c 139modules/ecore/system/upower/ecore_system_upower.c
128modules_ecore_system_upower_module_la_CPPFLAGS = \ 140modules_ecore_system_upower_module_la_CPPFLAGS = \
@@ -144,6 +156,12 @@ endif
144if HAVE_TIZEN_CONFIGURATION_MANAGER 156if HAVE_TIZEN_CONFIGURATION_MANAGER
145ecoretizenpkgdir = $(libdir)/ecore/system/tizen/$(MODULE_ARCH) 157ecoretizenpkgdir = $(libdir)/ecore/system/tizen/$(MODULE_ARCH)
146ecoretizenpkg_LTLIBRARIES = modules/ecore/system/tizen/module.la 158ecoretizenpkg_LTLIBRARIES = modules/ecore/system/tizen/module.la
159
160# Workaround for broken parallel install support in automake (relink issue)
161# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
162install_ecoretizenpkgLTLIBRARIES = install-ecoretizenpkgLTLIBRARIES
163$(install_ecoretizenpkgLTLIBRARIES): install-libLTLIBRARIES
164
147modules_ecore_system_tizen_module_la_SOURCES = \ 165modules_ecore_system_tizen_module_la_SOURCES = \
148modules/ecore/system/tizen/ecore_system_tizen.c 166modules/ecore/system/tizen/ecore_system_tizen.c
149modules_ecore_system_tizen_module_la_CPPFLAGS = \ 167modules_ecore_system_tizen_module_la_CPPFLAGS = \