summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac26
-rw-r--r--etc/makepkg.conf.in9
2 files changed, 17 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index d3ea3e7c..0bce1b6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,51 +63,51 @@ dnl Check for architecture
case "$host" in
i686-*) AC_DEFINE_UNQUOTED([CARCH], ["i686"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["i686"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["march"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["march"], [Architecture])
CARCH="i686"
CARCHFLAGS="i686"
- MARCHFLAG="march"
+ ARCHSWITCH="march"
CHOST="${host}"
;;
x86_64-*) AC_DEFINE_UNQUOTED([CARCH], ["x86_64"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["x86-64"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["march"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["march"], [Architecture])
CARCH="x86_64"
CARCHFLAGS="x86-64"
- MARCHFLAG="march"
+ ARCHSWITCH="march"
CHOST="${host}"
;;
ia64-*) AC_DEFINE_UNQUOTED([CARCH], ["ia64"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["ia64"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["march"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["march"], [Architecture])
CARCH="ia64"
CARCHFLAGS="ia64"
- MARCHFLAG="march"
+ ARCHSWITCH="march"
CHOST="${host}"
;;
sparc-*) AC_DEFINE_UNQUOTED([CARCH], ["sparc"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["v9"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["mcpu"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["mcpu"], [Architecture])
CARCH="sparc"
CARCHFLAGS="v9"
- MARCHFLAG="mcpu"
+ ARCHSWITCH="mcpu"
CHOST="${host}"
;;
ppc-* | powerpc-*)
AC_DEFINE_UNQUOTED([CARCH], ["ppc"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["750"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["mcpu"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["mcpu"], [Architecture])
CARCH="ppc"
CARCHFLAGS="750"
- MARCHFLAG="mcpu"
+ ARCHSWITCH="mcpu"
CHOST="${host}"
;;
i386-*) AC_DEFINE_UNQUOTED([CARCH], ["i386"], [Architecture])
AC_DEFINE_UNQUOTED([CARCHFLAGS], ["i386"], [Architecture])
- AC_DEFINE_UNQUOTED([MARCHFLAG], ["march"], [Architecture])
+ AC_DEFINE_UNQUOTED([ARCHSWITCH], ["march"], [Architecture])
CARCH="i386"
CARCHFLAGS="i386"
- MARCHFLAG="march"
+ ARCHSWITCH="march"
CHOST="${host}"
;;
*)
@@ -117,7 +117,7 @@ esac
AC_SUBST(CARCH)
AC_SUBST(CARCHFLAGS)
-AC_SUBST(MARCHFLAG)
+AC_SUBST(ARCHSWITCH)
AC_SUBST(CHOST)
dnl Help line for config file
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index b5425b26..e9043ed3 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -19,11 +19,10 @@ CARCH="@CARCH@"
CHOST="@CHOST@"
#-- Exclusive: will only run on @CARCHFLAGS@
-CFLAGS="-@MARCHFLAG@=@CARCHFLAGS@ -O2 -pipe"
-CXXFLAGS="-@MARCHFLAG@=@CARCHFLAGS@ -O2 -pipe"
-#-- Optimized: will run on any x86, but optimized for i686
-#CFLAGS="-mcpu=i686 -O2 -pipe"
-#CXXFLAGS="-mcpu=i686 -O2 -pipe"
+# -mtune builds exclusively for an architecture
+# -mcpu optimizes for an architecture, but builds for the whole processor family
+CFLAGS="-@ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
+CXXFLAGS="-@ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"