diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-09-16 13:04:03 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-09-16 13:04:03 -0400 |
commit | 4af2842fc43143d76020b8cc3f4ece4a9922aa55 (patch) | |
tree | 9c6519a45cf7e2fd523a2c5baa95b4e0d531adc7 /src | |
parent | b5a75739bb208be9dadcf87beda8ccd33f73f2a1 (diff) | |
download | duser-4af2842fc43143d76020b8cc3f4ece4a9922aa55.tar.gz |
Instead of detecting the host type, you may use --enable-compat instead.
Enabling compat will build and link against a static library containing
string functions not found in older version of glibc.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 10 | ||||
-rw-r--r-- | src/Makefile.in | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index db132b6..7605342 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,8 +1,12 @@ sbin_PROGRAMS= duser +duser_POSIX=-D__USE_POSIX +AM_CFLAGS=${duser_POSIX} --std=c99 -O2 -pedantic -Wall -Wextra +if HAVE_COMPAT +duser_LDFLAGS=-L$(top_srcdir)/compat -ldusercompat +else +duser_LDFLAGS= +endif -AM_CPPFLAGS= -I$(top_srcdir)/include - -duser_LDFLAGS= -L$(top_srcdir)/compat duser_SOURCES= duser.c \ user.c \ util.c \ diff --git a/src/Makefile.in b/src/Makefile.in index 7f1b5d6..1ab745e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -189,8 +189,10 @@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -AM_CPPFLAGS = -I$(top_srcdir)/include -duser_LDFLAGS = -L$(top_srcdir)/compat +duser_POSIX = -D__USE_POSIX +AM_CFLAGS = ${duser_POSIX} --std=c99 -O2 -pedantic -Wall -Wextra +@HAVE_COMPAT_FALSE@duser_LDFLAGS = +@HAVE_COMPAT_TRUE@duser_LDFLAGS = -L$(top_srcdir)/compat -ldusercompat duser_SOURCES = duser.c \ user.c \ util.c \ |