summaryrefslogtreecommitdiff
path: root/src/Makefile_Ethumb.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_Ethumb.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_Ethumb.am')
-rw-r--r--src/Makefile_Ethumb.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile_Ethumb.am b/src/Makefile_Ethumb.am
index 2a6fac6b37..baa43d8f3e 100644
--- a/src/Makefile_Ethumb.am
+++ b/src/Makefile_Ethumb.am
@@ -30,6 +30,12 @@ lib_ethumb_libethumb_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
30if BUILD_LOADER_PNG 30if BUILD_LOADER_PNG
31ethumbmoduleemotiondir = $(libdir)/ethumb/modules/emotion/$(MODULE_ARCH) 31ethumbmoduleemotiondir = $(libdir)/ethumb/modules/emotion/$(MODULE_ARCH)
32ethumbmoduleemotion_LTLIBRARIES = modules/ethumb/emotion/module.la 32ethumbmoduleemotion_LTLIBRARIES = modules/ethumb/emotion/module.la
33
34# Workaround for broken parallel install support in automake (relink issue)
35# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
36install_ethumbmoduleemotionLTLIBRARIES = install-ethumbmoduleemotionLTLIBRARIES
37$(install_ethumbmoduleemotionLTLIBRARIES): install-libLTLIBRARIES
38
33modules_ethumb_emotion_module_la_SOURCES = \ 39modules_ethumb_emotion_module_la_SOURCES = \
34modules/ethumb/emotion/emotion.c 40modules/ethumb/emotion/emotion.c
35modules_ethumb_emotion_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 41modules_ethumb_emotion_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \