From: Ivan Maidanski Date: Thu, 1 Dec 2011 09:47:26 +0000 (+0400) Subject: Preserve client-specified CFLAGS for DG/UX X-Git-Tag: gc7_3alpha2~299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=327d0233aa68ae5913a26fe685ddd4288094fded;p=platform%2Fupstream%2Flibgc.git Preserve client-specified CFLAGS for DG/UX * configure.ac (CFLAGS, CXXFLAGS): Preserve C/C++ flags passed by client (DG/UX only); remove code duplication (put common flags to "dgux_spec_opts" variable). --- diff --git a/configure.ac b/configure.ac index b9006c1..76dfea5 100644 --- a/configure.ac +++ b/configure.ac @@ -544,12 +544,12 @@ AC_CHECK_HEADER(sys/dg_sys_info.h, ## :GOTCHA: we do not check anything but sys/dg_sys_info.h if test $ac_is_dgux = yes; then + dgux_spec_opts="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" + CFLAGS="$dgux_spec_opts $CFLAGS" + CXXFLAGS="$dgux_spec_opts $CXXFLAGS" if test "$enable_gc_debug" = "yes"; then - CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" - CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" - else - CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" - CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" + CFLAGS="-g -mstandard $CFLAGS" + CXXFLAGS="-g -mstandard $CXXFLAGS" fi AC_SUBST(CFLAGS) AC_SUBST(CXXFLAGS)