summaryrefslogtreecommitdiff
path: root/src/Makefile_Eeze.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_Eeze.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 '')
-rw-r--r--src/Makefile_Eeze.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile_Eeze.am b/src/Makefile_Eeze.am
index e56a43f..31b0cfb 100644
--- a/src/Makefile_Eeze.am
+++ b/src/Makefile_Eeze.am
@@ -58,6 +58,12 @@ lib_eeze_libeeze_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
58if HAVE_EEZE_TIZEN 58if HAVE_EEZE_TIZEN
59eezemodulesensortizendir = $(libdir)/eeze/modules/sensor/tizen/$(MODULE_ARCH) 59eezemodulesensortizendir = $(libdir)/eeze/modules/sensor/tizen/$(MODULE_ARCH)
60eezemodulesensortizen_LTLIBRARIES = modules/eeze/sensor/tizen/module.la 60eezemodulesensortizen_LTLIBRARIES = modules/eeze/sensor/tizen/module.la
61
62# Workaround for broken parallel install support in automake (relink issue)
63# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
64install_eezemodulesensortizenLTLIBRARIES = install-eezemodulesensortizenLTLIBRARIES
65$(install_eezemodulesensortizenLTLIBRARIES): install-libLTLIBRARIES
66
61modules_eeze_sensor_tizen_module_la_SOURCES = \ 67modules_eeze_sensor_tizen_module_la_SOURCES = \
62modules/eeze/sensor/tizen/tizen.c 68modules/eeze/sensor/tizen/tizen.c
63modules_eeze_sensor_tizen_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 69modules_eeze_sensor_tizen_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
@@ -72,6 +78,12 @@ modules_eeze_sensor_tizen_module_la_LIBTOOLFLAGS = --tag=disable-static
72else 78else
73eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH) 79eezemodulesensorfakedir = $(libdir)/eeze/modules/sensor/fake/$(MODULE_ARCH)
74eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la 80eezemodulesensorfake_LTLIBRARIES = modules/eeze/sensor/fake/module.la
81
82# Workaround for broken parallel install support in automake (relink issue)
83# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
84install_eezemodulesensorfakeLTLIBRARIES = install-eezemodulesensorfakeLTLIBRARIES
85$(install_eezemodulesensorfakeLTLIBRARIES): install-libLTLIBRARIES
86
75modules_eeze_sensor_fake_module_la_SOURCES = modules/eeze/sensor/fake/fake.c 87modules_eeze_sensor_fake_module_la_SOURCES = modules/eeze/sensor/fake/fake.c
76modules_eeze_sensor_fake_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@ 88modules_eeze_sensor_fake_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
77modules_eeze_sensor_fake_module_la_LIBADD = @USE_EEZE_LIBS@ 89modules_eeze_sensor_fake_module_la_LIBADD = @USE_EEZE_LIBS@
@@ -81,6 +93,12 @@ modules_eeze_sensor_fake_module_la_LIBTOOLFLAGS = --tag=disable-static
81endif 93endif
82eezemodulesensorudevdir = $(libdir)/eeze/modules/sensor/udev/$(MODULE_ARCH) 94eezemodulesensorudevdir = $(libdir)/eeze/modules/sensor/udev/$(MODULE_ARCH)
83eezemodulesensorudev_LTLIBRARIES = modules/eeze/sensor/udev/module.la 95eezemodulesensorudev_LTLIBRARIES = modules/eeze/sensor/udev/module.la
96
97# Workaround for broken parallel install support in automake (relink issue)
98# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
99install_eezemodulesensorudevLTLIBRARIES = install-eezemodulesensorudevLTLIBRARIES
100$(install_eezemodulesensorudevLTLIBRARIES): install-libLTLIBRARIES
101
84modules_eeze_sensor_udev_module_la_SOURCES = modules/eeze/sensor/udev/udev.c 102modules_eeze_sensor_udev_module_la_SOURCES = modules/eeze/sensor/udev/udev.c
85modules_eeze_sensor_udev_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@ 103modules_eeze_sensor_udev_module_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EEZE_CFLAGS@
86modules_eeze_sensor_udev_module_la_LIBADD = @USE_EEZE_LIBS@ 104modules_eeze_sensor_udev_module_la_LIBADD = @USE_EEZE_LIBS@