From: kouril Date: Mon, 6 Nov 2006 15:36:08 +0000 (+0000) Subject: The shell functions supported by BSD make:s doesn't do what we are used to from X-Git-Tag: v5.2~2 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.git;a=commitdiff_plain;h=0ebaf0fa8d361f9425958f5d78390a1fee14f025 The shell functions supported by BSD make:s doesn't do what we are used to from GNU make. Added a comment with two lines which provide the same functionality also on BSD platforms. It'd be greate if they were wrapped with a if statetement. --- diff --git a/Makefile.in b/Makefile.in index 7d17e9f..9c40491 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,6 +10,10 @@ CPPFLAGS = -I. -Ispnegokrb5 $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS) LDFLAGS = $(KRB5_LDFLAGS) $(KRB4_LDFLAGS) $(LIB_resolv) CFLAGS = +# Use these assignements instead of the default ones if your're building on BSD +# systems. A 'if' statemet would be better, of course. +#APXS_CPPFLAGS != [ -n "${CPPFLAGS}" ] && echo ${CPPFLAGS} | sed -e 's/\([^ ]*\)/-Wc,\1/g' +#APXS_LDFLAGS != [ -n "${LDFLAGS}" ] && echo ${LDFLAGS} | sed -e 's/\([^ ]*\)/-Wl,\1/g' APXS_CPPFLAGS = ${shell [ -n "${CPPFLAGS}" ] && echo ${CPPFLAGS} | sed -e 's/\([^ ]*\)/-Wc,\1/g'} APXS_LDFLAGS = ${shell [ -n "${LDFLAGS}" ] && echo ${LDFLAGS} | sed -e 's/\([^ ]*\)/-Wl,\1/g'}