Skip to content

Commit

Permalink
Next to setting explicit CFLAGS also set CXXFLAGS.
Browse files Browse the repository at this point in the history
As we compile everything using CXXFLAGS when its C++ we should also set
the specific CFLAGS in CXXFLAGS on some platforms.
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent f5eb37d commit 83ef420
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion autoconf/configure.in
Expand Up @@ -3482,6 +3482,7 @@ bsdi)
TAPEDRIVE="/dev/nrmt0"
PTHREAD_LIB="-pthread"
CFLAGS="${CFLAGS} -pthread"
CXXFLAGS="${CXXFLAGS} -pthread"
PSCMD="ps -ax -o pid,command"
lld="qd"
llu="qu"
Expand Down Expand Up @@ -3520,6 +3521,7 @@ freebsd)
if test x$VER = x4 ; then
PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS:--pthread}"
fi
lld="qd"
llu="qu"
Expand All @@ -3544,6 +3546,7 @@ hurd)
hpux)
PSCMD="UNIX95=1; ps -e -o pid,comm"
CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
CXXFLAGS="${CXXFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
TAPEDRIVE="/dev/rmt/0hnb"
PTHREAD_LIB="-lpthread"
AC_DEFINE(_INCLUDE_LONGLONG, 1, [Needed on HP-UX/g++ systems to support long long ints (int64)])
Expand All @@ -3564,6 +3567,7 @@ netbsd)
PSCMD="ps -ax -o pid,command"
PTHREAD_LIB="-pthread"
CFLAGS="${CFLAGS} -pthread"
CXXFLAGS="${CXXFLAGS} -pthread"
;;
openbsd)
lld="qd"
Expand All @@ -3572,6 +3576,7 @@ openbsd)
PSCMD="ps -ax -o pid,command"
PTHREAD_LIB="-pthread"
CFLAGS="${CFLAGS} -pthread"
CXXFLAGS="${CXXFLAGS} -pthread"
PFILES="${PFILES} \
platforms/openbsd/Makefile \
platforms/openbsd/bareos-fd \
Expand Down Expand Up @@ -3603,7 +3608,7 @@ gentoo)
PSCMD="ps -e -o pid,command"
PFILES="${PFILES} \
platforms/gentoo/Makefile \
platforms/gentoo/bareos-init \
platforms/gentoo/bareos-init \
platforms/gentoo/bareos-fd \
platforms/gentoo/bareos-sd \
platforms/gentoo/bareos-dir"
Expand Down

0 comments on commit 83ef420

Please sign in to comment.