Skip to content

Commit

Permalink
configuration closer to makepkg
Browse files Browse the repository at this point in the history
  • Loading branch information
bbidulock committed Apr 19, 2015
1 parent 60a8f80 commit 792baee
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion configs/configure.arch
Expand Up @@ -2,18 +2,53 @@
set -x
where=`dirname $0`
srcdir=`(cd $where/..; pwd)`

# need --enable-maintainer-mode to be able to run in place
# must be disabled to build an installable package

# *FLAGS are what Arch Linux makepkg uses with the exception
# that -Wall -Werror is added

case "`uname -m`" in
i686)
CPPFLAGS="-D_FORTIFY_SOURCE"
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
;;
x86_64)
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
;;
esac

# use native tools for arch
$srcdir/configure \
WFLAGS='-Wno-unused-but-set-variable -Wno-system-headers -Wno-endif-labels' \
CPPFLAGS="$CPPFLAGS" \
CFLAGS="-Wall -Werror $CFLAGS" \
CXXFLAGS="-Wall -Werror $CXXFLAGS" \
LDFLAGS="$LDFLAGS" \
DEBUG_CFLAGS="$DEBUG_CFLAGS" \
DEBUG_CXXFLAGS="$DEBUG_CXXFLAGS" \
syslibdir=/usr/lib \
sysbindir=/usr/bin \
syssbindir=/usr/bin \
--enable-maintainer-mode \
--enable-dependency-tracking \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libexecdir=/usr/lib \
--docdir=/usr/share/doc/openss7 \
--enable-maintainer-mode \
--disable-sysvinit \
--disable-k-abi-support \
--disable-k-weak-symbols \
Expand Down

0 comments on commit 792baee

Please sign in to comment.