mirror of https://github.com/PCSX2/pcsx2.git
Linux: Add -m32 to the compiler flags of pcsx2 and all plugins.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1169 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
d3547e0662
commit
6083e3a643
|
@ -11,6 +11,16 @@ AC_PROG_CXX
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
|
CFLAGS=
|
||||||
|
CPPFLAGS=
|
||||||
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
|
|
||||||
dnl Check for 64bit CPU
|
dnl Check for 64bit CPU
|
||||||
AC_MSG_CHECKING(for a x86-64 CPU)
|
AC_MSG_CHECKING(for a x86-64 CPU)
|
||||||
dnl if test "$build_os" == "target_os"
|
dnl if test "$build_os" == "target_os"
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -28,7 +28,7 @@ export PCSX2PLUGINS="`pwd`/bin/plugins"
|
||||||
curdir=`pwd`
|
curdir=`pwd`
|
||||||
|
|
||||||
echo "Building the Pcsx2 Suite."
|
echo "Building the Pcsx2 Suite."
|
||||||
echo "Note: will not compile on Linux x64."
|
echo "Note: binaries generated are 32 bit, and require 32 bit versions of all dependencies."
|
||||||
cd ${curdir}/plugins
|
cd ${curdir}/plugins
|
||||||
sh build.sh $option
|
sh build.sh $option
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building Pcsx2."
|
echo "Building Pcsx2."
|
||||||
echo "Note: will not compile on Linux x64."
|
echo "Note: binaries generated are 32 bit, and require 32 bit versions of all dependencies."
|
||||||
cd ${curdir}/pcsx2
|
cd ${curdir}/pcsx2
|
||||||
sh build.sh $option
|
sh build.sh $option
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,10 @@ AC_PROG_CPP([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
|
||||||
|
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
|
#AS="$CC"
|
||||||
|
#AC_SUBST(AS)
|
||||||
|
#AC_SUBST(ASFLAGS)
|
||||||
|
|
||||||
dnl necessary for compiling assembly
|
dnl necessary for compiling assembly
|
||||||
AM_PROG_AS
|
AM_PROG_AS
|
||||||
|
|
||||||
|
@ -50,14 +54,19 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+=" ${DEBUG_FLAGS} -Xlinker -zmuldefs "
|
CFLAGS+=" ${DEBUG_FLAGS} -Xlinker -zmuldefs -m32 "
|
||||||
CXXFLAGS+=" ${DEBUG_FLAGS} -fpermissive -Xlinker -zmuldefs "
|
CXXFLAGS+=" ${DEBUG_FLAGS} -fpermissive -Xlinker -zmuldefs -m32 "
|
||||||
CCASFLAGS+=" -D_DEBUG ${DEBUG_FLAGS} "
|
CCASFLAGS+=" -D_DEBUG ${DEBUG_FLAGS} -m32 "
|
||||||
|
#LDFLAGS+=" -m32 "
|
||||||
|
#ASFLAGS+=" -m32 "
|
||||||
MYOBJDIR="Debug"
|
MYOBJDIR="Debug"
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+=" ${NORMAL_FLAGS}"
|
CFLAGS+=" ${NORMAL_FLAGS} -m32 "
|
||||||
CXXFLAGS+=" ${NORMAL_FLAGS} -fpermissive -Xlinker -zmuldefs "
|
CXXFLAGS+=" ${NORMAL_FLAGS} -fpermissive -Xlinker -zmuldefs -m32 "
|
||||||
|
CCASFLAGS+=" ${NORMAL_FLAGS} -m32 "
|
||||||
|
#LDFLAGS+=" -m32 "
|
||||||
|
#ASFLAGS+=" -m32 "
|
||||||
MYOBJDIR="Release"
|
MYOBJDIR="Release"
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(CDVDiso_SONAME,libCDVDiso.so.[$CDVDiso_CURRENT].[$CDVDiso_REVISION].[$C
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+=" -g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+=" -g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+=" -g -fPIC -Wall -Wno-unused-value -fpermissive "
|
CXXFLAGS+=" -g -fPIC -Wall -Wno-unused-value -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value "
|
CFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value "
|
CPPFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -fpermissive "
|
CXXFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -3,7 +3,7 @@ PLUGIN = libCDVDisoEFP.so
|
||||||
PLUGINOBJS = CDVDiso.o
|
PLUGINOBJS = CDVDiso.o
|
||||||
PLUGINHEADERS = CDVDiso.h
|
PLUGINHEADERS = CDVDiso.h
|
||||||
PLUGINFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
PLUGINFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
||||||
-I.. -I. -I./Linux
|
-I.. -I. -I./Linux -m32
|
||||||
PLUGINLIBS = -lz -lbz2
|
PLUGINLIBS = -lz -lbz2
|
||||||
|
|
||||||
CFG = cfgCDVDisoEFP
|
CFG = cfgCDVDisoEFP
|
||||||
|
@ -14,7 +14,7 @@ CFGHEADERS = interface.h aboutbox.h mainbox.h selectionbox.h \
|
||||||
devicebox.h conversionbox.h progressbox.h messagebox.h \
|
devicebox.h conversionbox.h progressbox.h messagebox.h \
|
||||||
tablerebuild.h device.h CD.h DVD.h
|
tablerebuild.h device.h CD.h DVD.h
|
||||||
CFGFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
CFGFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
||||||
-I.. -I. -I./Linux
|
-I.. -I. -I./Linux -m32
|
||||||
CFGLIBS = -lz -lbz2
|
CFGLIBS = -lz -lbz2
|
||||||
|
|
||||||
COMP = compCDVDisoEFP
|
COMP = compCDVDisoEFP
|
||||||
|
|
|
@ -3,14 +3,14 @@ PLUGIN = libCDVDlinuz.so
|
||||||
PLUGINOBJS = CDVDlinuz.o ../buffer.o
|
PLUGINOBJS = CDVDlinuz.o ../buffer.o
|
||||||
PLUGINHEADERS = CDVDlinuz.h ../buffer.h
|
PLUGINHEADERS = CDVDlinuz.h ../buffer.h
|
||||||
PLUGINFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
PLUGINFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
||||||
-I.. -I. -I./Linux
|
-I.. -I. -I./Linux -m32
|
||||||
PLUGINLIBS =
|
PLUGINLIBS =
|
||||||
|
|
||||||
CFG = cfgCDVDlinuz
|
CFG = cfgCDVDlinuz
|
||||||
CFGOBJS = aboutbox.o mainbox.o interface.o
|
CFGOBJS = aboutbox.o mainbox.o interface.o
|
||||||
CFGHEADERS = aboutbox.h mainbox.h interface.h
|
CFGHEADERS = aboutbox.h mainbox.h interface.h
|
||||||
CFGFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
CFGFLAGS = -fPIC -Wall -O2 -fomit-frame-pointer -D_LARGEFILE64_SOURCE \
|
||||||
-I.. -I. -I./Linux
|
-I.. -I. -I./Linux -m32
|
||||||
CFGLIBS =
|
CFGLIBS =
|
||||||
|
|
||||||
SHAREDOBJS = actualfile.o conf.o logfile.o \
|
SHAREDOBJS = actualfile.o conf.o logfile.o \
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(CDVDnull_SONAME,libCDVDnull.so.[$CDVDnull_CURRENT].[$CDVDnull_REVISION]
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(FWnull_SONAME,libFWnull.so.[$FWnull_CURRENT].[$FWnull_REVISION].[$FWnul
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(GSnull_SONAME,libGSnull.so.[$GSnull_CURRENT].[$GSnull_REVISION].[$GSnul
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -16,9 +16,9 @@ NOTHREADLIB = FALSE
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CCFLAGS1 = -fPIC -c -Wall -O3
|
CCFLAGS1 = -fPIC -c -Wall -O3 -m32
|
||||||
CCFLAGS2 = -fPIC -c -Wall -O2 -ffast-math
|
CCFLAGS2 = -fPIC -c -Wall -O2 -ffast-math -m32
|
||||||
CCFLAGS3 = -fPIC -c -Wall -O3 -ffast-math -fomit-frame-pointer
|
CCFLAGS3 = -fPIC -c -Wall -O3 -ffast-math -fomit-frame-pointer -m32
|
||||||
|
|
||||||
INCLUDE =
|
INCLUDE =
|
||||||
LINK = gcc
|
LINK = gcc
|
||||||
|
@ -32,7 +32,7 @@ ifeq ($(USEALSA), TRUE)
|
||||||
CCFLAGS3+= -DUSEALSA
|
CCFLAGS3+= -DUSEALSA
|
||||||
else
|
else
|
||||||
OBJ+= oss.o
|
OBJ+= oss.o
|
||||||
LINKFLAGS = -shared -Wl,-soname,libspu2PeopsOSS.so.1.6 -fPIC -fomit-frame-pointer -o libspu2PeopsOSS.so.1.6
|
LINKFLAGS = -shared -Wl,-soname,libspu2PeopsOSS.so.1.6 -fPIC -fomit-frame-pointer -o libspu2PeopsOSS.so.1.6 -m32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(NOTHREADLIB), TRUE)
|
ifeq ($(NOTHREADLIB), TRUE)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(SPU2null_SONAME,libSPU2null.so.[$SPU2null_CURRENT].[$SPU2null_REVISION]
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(USBnull_SONAME,libUSBnull.so.[$USBnull_CURRENT].[$USBnull_REVISION].[$U
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(DEV9null_SONAME,libDEV9null.so.[$DEV9null_CURRENT].[$DEV9null_REVISION]
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(SPU2X_SONAME,libSPU2X.so.[$SPU2X_CURRENT].[$SPU2X_REVISION].[$SPU2X_AGE
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -4428,6 +4428,7 @@ ZEROGS_SONAME=libZeroGSogl.so.$ZEROGS_CURRENT.$ZEROGS_REVISION.$ZEROGS_AGE
|
||||||
CFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
CPPFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CPPFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
CXXFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CXXFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
{ $as_echo "$as_me:$LINENO: checking debug build" >&5
|
{ $as_echo "$as_me:$LINENO: checking debug build" >&5
|
||||||
$as_echo_n "checking debug build... " >&6; }
|
$as_echo_n "checking debug build... " >&6; }
|
||||||
|
@ -4445,18 +4446,20 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
#define _DEBUG 1
|
#define _DEBUG 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
CFLAGS+="-g "
|
CFLAGS+="-g -m32 "
|
||||||
CPPFLAGS+="-g "
|
CPPFLAGS+="-g -m32 "
|
||||||
CXXFLAGS+="-g -fpermissive "
|
CXXFLAGS+="-g -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
|
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
#define NDEBUG 1
|
#define NDEBUG 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer "
|
CFLAGS+="-O3 -fomit-frame-pointer -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fpermissive "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
{ $as_echo "$as_me:$LINENO: result: $debug" >&5
|
{ $as_echo "$as_me:$LINENO: result: $debug" >&5
|
||||||
$as_echo "$debug" >&6; }
|
$as_echo "$debug" >&6; }
|
||||||
|
|
|
@ -22,6 +22,7 @@ AC_SUBST(ZEROGS_SONAME, libZeroGSogl.so.[$ZEROGS_CURRENT].[$ZEROGS_REVISION].[$Z
|
||||||
CFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
CPPFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CPPFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
CXXFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
CXXFLAGS=" -I/opt/cg/include -L/opt/cg/lib "
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -30,14 +31,16 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g "
|
CFLAGS+="-g -m32 "
|
||||||
CPPFLAGS+="-g "
|
CPPFLAGS+="-g -m32 "
|
||||||
CXXFLAGS+="-g -fpermissive "
|
CXXFLAGS+="-g -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer "
|
CFLAGS+="-O3 -fomit-frame-pointer -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fpermissive "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fpermissive -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ AC_SUBST(ZEROPAD_SONAME, libZeroPAD.so.[$ZEROPAD_CURRENT].[$ZEROPAD_REVISION].[$
|
||||||
|
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -28,12 +29,14 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g "
|
CFLAGS+="-g -m32 "
|
||||||
CXXFLAGS+="-g "
|
CXXFLAGS+="-g -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O2 -fomit-frame-pointer "
|
CFLAGS+="-O2 -fomit-frame-pointer -m32 "
|
||||||
CXXFLAGS+="-O2 -fomit-frame-pointer "
|
CXXFLAGS+="-O2 -fomit-frame-pointer -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
|
@ -21,6 +21,7 @@ AC_SUBST(ZEROSPU2_SONAME, libZeroSPU2.so.[$ZEROSPU2_CURRENT].[$ZEROSPU2_REVISION
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CXXFLAGS=
|
CXXFLAGS=
|
||||||
|
CCASFLAGS=
|
||||||
|
|
||||||
dnl Check for debug build
|
dnl Check for debug build
|
||||||
AC_MSG_CHECKING(debug build)
|
AC_MSG_CHECKING(debug build)
|
||||||
|
@ -29,14 +30,16 @@ debug=$enableval,debug=no)
|
||||||
if test "x$debug" == xyes
|
if test "x$debug" == xyes
|
||||||
then
|
then
|
||||||
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
AC_DEFINE(_DEBUG,1,[_DEBUG])
|
||||||
CFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-g -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
else
|
else
|
||||||
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
AC_DEFINE(NDEBUG,1,[NDEBUG])
|
||||||
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CPPFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value "
|
CXXFLAGS+="-O3 -fomit-frame-pointer -fPIC -Wall -Wno-unused-value -m32 "
|
||||||
|
CCASFLAGS+=" -m32 "
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
|
||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
Loading…
Reference in New Issue