summaryrefslogtreecommitdiff
path: root/src/Makefile_Eina.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_Eina.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_Eina.am')
-rw-r--r--src/Makefile_Eina.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index b60df36..539eadb 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -166,6 +166,11 @@ else
166einampchainedpooldir = $(libdir)/eina/modules/mp/chained_pool/$(MODULE_ARCH) 166einampchainedpooldir = $(libdir)/eina/modules/mp/chained_pool/$(MODULE_ARCH)
167einampchainedpool_LTLIBRARIES = modules/eina/mp/chained_pool/chained_pool_module.la 167einampchainedpool_LTLIBRARIES = modules/eina/mp/chained_pool/chained_pool_module.la
168 168
169# Workaround for broken parallel install support in automake (relink issue)
170# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
171install_einampchainedpoolLTLIBRARIES = install-einampchainedpoolLTLIBRARIES
172$(install_einampchainedpoolLTLIBRARIES): install-libLTLIBRARIES
173
169modules_eina_mp_chained_pool_chained_pool_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS) 174modules_eina_mp_chained_pool_chained_pool_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
170modules_eina_mp_chained_pool_chained_pool_module_la_LIBADD = @USE_EINA_LIBS@ 175modules_eina_mp_chained_pool_chained_pool_module_la_LIBADD = @USE_EINA_LIBS@
171modules_eina_mp_chained_pool_chained_pool_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ 176modules_eina_mp_chained_pool_chained_pool_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
@@ -180,6 +185,11 @@ else
180einamponebigdir = $(libdir)/eina/modules/mp/one_big/$(MODULE_ARCH) 185einamponebigdir = $(libdir)/eina/modules/mp/one_big/$(MODULE_ARCH)
181einamponebig_LTLIBRARIES = modules/eina/mp/one_big/one_big_module.la 186einamponebig_LTLIBRARIES = modules/eina/mp/one_big/one_big_module.la
182 187
188# Workaround for broken parallel install support in automake (relink issue)
189# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
190install_einamponebigLTLIBRARIES = install-einamponebigLTLIBRARIES
191$(install_einamponebigLTLIBRARIES): install-libLTLIBRARIES
192
183modules_eina_mp_one_big_one_big_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS) 193modules_eina_mp_one_big_one_big_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
184modules_eina_mp_one_big_one_big_module_la_LIBADD = @USE_EINA_LIBS@ 194modules_eina_mp_one_big_one_big_module_la_LIBADD = @USE_EINA_LIBS@
185modules_eina_mp_one_big_one_big_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ 195modules_eina_mp_one_big_one_big_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@
@@ -194,6 +204,11 @@ else
194einamppassthroughdir = $(libdir)/eina/modules/mp/pass_through/$(MODULE_ARCH) 204einamppassthroughdir = $(libdir)/eina/modules/mp/pass_through/$(MODULE_ARCH)
195einamppassthrough_LTLIBRARIES = modules/eina/mp/pass_through/pass_through_module.la 205einamppassthrough_LTLIBRARIES = modules/eina/mp/pass_through/pass_through_module.la
196 206
207# Workaround for broken parallel install support in automake (relink issue)
208# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
209install_einamppassthroughLTLIBRARIES = install-einamppassthroughLTLIBRARIES
210$(install_einamppassthroughLTLIBRARIES): install-libLTLIBRARIES
211
197modules_eina_mp_pass_through_pass_through_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS) 212modules_eina_mp_pass_through_pass_through_module_la_CFLAGS = $(EINA_MODULE_COMMON_CFLAGS)
198modules_eina_mp_pass_through_pass_through_module_la_LIBADD = @USE_EINA_LIBS@ 213modules_eina_mp_pass_through_pass_through_module_la_LIBADD = @USE_EINA_LIBS@
199modules_eina_mp_pass_through_pass_through_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@ 214modules_eina_mp_pass_through_pass_through_module_la_DEPENDENCIES = @USE_EINA_INTERNAL_LIBS@