From a8e9b3d2025696ab9e7c5ea54a179b32c0d09735 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 10 Mar 2020 21:56:41 -0700 Subject: [PATCH] configure: Initialize flags before LT_INIT. --- configure.ac | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 483134e35..1ee0d123d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ AC_PREREQ(2.63) AUTOMAKE_OPTIONS = 1.11 - AC_INIT([construct], [1.0-dev]) + AC_GNU_SOURCE AC_USE_SYSTEM_EXTENSIONS @@ -20,14 +20,19 @@ AC_PATH_PROG(LN, ln) AC_PATH_PROG(LD, ld.gold) AC_PATH_PROG(TOUCH, touch) +AC_SUBST(CC) +AC_SUBST(CXX) +AC_SUBST(LD) + +AC_SUBST(CFLAGS, "-pipe") +AC_SUBST(CXXFLAGS, "-pipe") +AC_SUBST(CPPFLAGS) +AC_SUBST(LDFLAGS) +AC_SUBST(LIBS) + LT_INIT([dlopen shared disable-static]) LT_LANG([C++]) -dnl Note that AC_PROG_CXX will default CXXFLAGS to -O2 and -g; this just adds -dnl clutter and confusion. Setting it first prevents that. -CXXFLAGS="-pipe" -CFLAGS="-pipe" - AM_PROG_AS AC_PROG_CXX AC_PROG_CXX_C_O @@ -64,21 +69,6 @@ dnl # mrproper #]) -dnl -dnl Initialization of variables exported to Makefile.am. -dnl These will be further composed throughout this file... -dnl - -AC_SUBST(CC) -AC_SUBST(CXX) -AC_SUBST(LD) - -AC_SUBST(CFLAGS) -AC_SUBST(CPPFLAGS) -AC_SUBST(CXXFLAGS) -AC_SUBST(LDFLAGS) -AC_SUBST(LIBS) - dnl *************************************************************************** dnl dnl Platform