# compile flags for C compiler
CFLAGS = @CFLAGS@
-ifeq ($(enable-shared),yes)
- CXXFLAGS.g += @CXXFLAGSPIC@
- CXXFLAGS.o += @CXXFLAGSPIC@
-
- F77FLAGS.g += @F77FLAGSPIC@
- F77FLAGS.o += @F77FLAGSPIC@
-
- CFLAGS += @CFLAGSPIC@
- LDFLAGS += @LDFLAGSPIC@
-endif
-
-
# PETSc wants to see a whole lot of other flags being passed. ...
ifeq ($(USE_CONTRIB_PETSC),yes)
include $(DEAL_II_PETSC_DIR)/bmake/$(DEAL_II_PETSC_ARCH)/variables
;;
esac
+if test "x$enableshared" = "xyes" ; then
+ CFLAGS="$CFLAGS $CFLAGSPIC"
+ CXXFLAGSG="$CXXFLAGSG $CXXFLAGSPIC"
+ CXXFLAGSO="$CXXFLAGSO $CXXFLAGSPIC"
+ F77FLAGSG="$F77FLAGSG $F77FLAGSPIC"
+ F77FLAGSO="$F77FLAGSO $F77FLAGSPIC"
+fi
+
;;
esac
+if test "x$enableshared" = "xyes" ; then
+ CFLAGS="$CFLAGS $CFLAGSPIC"
+ CXXFLAGSG="$CXXFLAGSG $CXXFLAGSPIC"
+ CXXFLAGSO="$CXXFLAGSO $CXXFLAGSPIC"
+ F77FLAGSG="$F77FLAGSG $F77FLAGSPIC"
+ F77FLAGSO="$F77FLAGSO $F77FLAGSPIC"
+fi
+
AC_SUBST(enableshared)
AC_SUBST(static_lib_suffix)
AC_SUBST(shared_lib_suffix)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams