From 5afe8316abdd5c3508e82dbc3bcd04139892c3f2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 28 Apr 2003 22:51:15 +0000 Subject: [PATCH] Multiple build directories fix git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4731 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Makefile.am b/Source/Makefile.am index 63b2d26e2..b47134c8f 100644 --- a/Source/Makefile.am +++ b/Source/Makefile.am @@ -11,6 +11,7 @@ SWIG_CXX_DEFS = -DSWIG_LIB=\"$(swig_lib)\" \ -DRELEASE_SUFFIX=\"$(release_suffix)\" @SWILL@ AM_CFLAGS = -I$(BUILD_SOURCE_DIR)/Include \ + -I$(BUILD_SOURCE_DIR)/CParse \ -I$(SOURCE_DIR)/Include \ -I$(SOURCE_DIR)/DOH \ -I$(SOURCE_DIR)/CParse \ @@ -88,6 +89,9 @@ eswig_SOURCES = CParse/cscanner.c \ bin_PROGRAMS = eswig eswig_LDADD = @SWIGLIBS@ +# Override the link stage to avoid using Libtool +CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ + # The executable is copied to the root directory for installation and running the test-suite. # This occurs on each invocation of make and is a step towards providing support for multiple # build directories.