aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-09-16 13:04:03 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2012-05-25 14:21:20 -0400
commit7bbcc6690df5cf9982121f2f16ebc315882e618f (patch)
tree9c6519a45cf7e2fd523a2c5baa95b4e0d531adc7 /src/Makefile.am
parent8cd7c46cfb8f9226f7260a0a27afad3fc8cae33b (diff)
downloadduser-7bbcc6690df5cf9982121f2f16ebc315882e618f.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/Makefile.am')
-rw-r--r--src/Makefile.am10
1 files changed, 7 insertions, 3 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 \