diff options
author | Guillem Jover <guillem@hadrons.org> | 2014-07-20 01:48:20 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2014-07-20 02:09:20 +0200 |
commit | e8d3d04177c8718f1e7f583cbcca15f8e0b9602e (patch) | |
tree | 63bf56d74c3f5066a454306f83cd97b98646f3eb /src | |
parent | faa005cb3209239bdbdf001e387cbcf9f088b12c (diff) |
build: Remove hard requirement for GNU .init_array section support
In case the support is not available, just stop building the
libbsd-ctor.a library, which is a nice to have thing, but should not
have been a hard requirement from the start. This should allow to
build libbsd on non-glibc based systems using another libc.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b9ff0bc..3f3a0f6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,12 +22,17 @@ CLEANFILES = \ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = \ libbsd.pc \ - libbsd-ctor.pc \ libbsd-overlay.pc \ $(nil) lib_LTLIBRARIES = libbsd.la -lib_LIBRARIES = libbsd-ctor.a +lib_LIBRARIES = + +if BUILD_LIBBSD_CTOR +pkgconfig_DATA += libbsd-ctor.pc + +lib_LIBRARIES += libbsd-ctor.a +endif hash/md5hl.c: $(srcdir)/hash/helper.c $(AM_V_at) $(MKDIR_P) hash |