mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Some platforms need -fPIE instead of -fpie
This commit is contained in:
parent
efbc7f1d57
commit
781788e2ee
17
mkpkg
17
mkpkg
@ -9,6 +9,17 @@ platform=`$top_srcdir/pp --probe` || exit 1
|
|||||||
# Default paths
|
# Default paths
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
|
||||||
|
# Linux distros may build binaries as pie files.
|
||||||
|
# This is really something libtool should figure out, but it does not.
|
||||||
|
case "$platform" in
|
||||||
|
*-s390*|*-sparc*|*-alpha*)
|
||||||
|
F_PIE=-fPIE
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
F_PIE=-fpie
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Choose configure options by platform.
|
# Choose configure options by platform.
|
||||||
# We use the same configure options as vendor packages when possible.
|
# We use the same configure options as vendor packages when possible.
|
||||||
case "$platform" in
|
case "$platform" in
|
||||||
@ -46,7 +57,7 @@ case "$platform" in
|
|||||||
--with-selinux
|
--with-selinux
|
||||||
--with-linux-audit
|
--with-linux-audit
|
||||||
--with-passprompt=[sudo] password for %p: "
|
--with-passprompt=[sudo] password for %p: "
|
||||||
export CFLAGS="-fpie" LDFLAGS="-pie"
|
export CFLAGS="$F_PIE" LDFLAGS="-pie"
|
||||||
;;
|
;;
|
||||||
sles9*)
|
sles9*)
|
||||||
prefix=/usr
|
prefix=/usr
|
||||||
@ -100,7 +111,7 @@ case "$platform" in
|
|||||||
--with-passprompt=%p\'s password: "
|
--with-passprompt=%p\'s password: "
|
||||||
|
|
||||||
make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
||||||
export CFLAGS="-fpie" LDFLAGS="-pie"
|
export CFLAGS="$F_PIE" LDFLAGS="-pie"
|
||||||
;;
|
;;
|
||||||
sles11*)
|
sles11*)
|
||||||
prefix=/usr
|
prefix=/usr
|
||||||
@ -129,7 +140,7 @@ case "$platform" in
|
|||||||
--with-passprompt=%p\'s password: "
|
--with-passprompt=%p\'s password: "
|
||||||
|
|
||||||
make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
make_opts='docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
||||||
export CFLAGS="-fpie" LDFLAGS="-pie"
|
export CFLAGS="$F_PIE" LDFLAGS="-pie"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Note, must indent with tabs, not spaces due to IFS trickery
|
# Note, must indent with tabs, not spaces due to IFS trickery
|
||||||
|
Loading…
x
Reference in New Issue
Block a user