You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
Fix standard_configure.sh for out-of-source builds
See: https://trac.macports.org/ticket/28001
This commit is contained in:
committed by
Ryan Carsten Schmidt
parent
0b9ef4fccb
commit
e185203ec0
@@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
script_dir=$(dirname "$0")
|
||||||
|
|
||||||
# This is how we run configure when building binary packages (more or less,
|
# This is how we run configure when building binary packages (more or less,
|
||||||
# minus architecture selection). If you don't want a custom build, this
|
# minus architecture selection). If you don't want a custom build, this
|
||||||
# is probably how you should run it too.
|
# is probably how you should run it too.
|
||||||
env PATH=/usr/bin:/bin:/usr/sbin:/sbin CFLAGS="-pipe -Os" ./configure --enable-readline "$@"
|
env PATH=/usr/bin:/bin:/usr/sbin:/sbin CFLAGS="-pipe -Os" "$script_dir"/configure --enable-readline "$@"
|
||||||
|
|
||||||
# If you want to use a different prefix, add this to the above:
|
# If you want to use a different prefix, add this to the above:
|
||||||
# --prefix=/some/path --with-applications-dir=/some/path/Applications
|
# --prefix=/some/path --with-applications-dir=/some/path/Applications
|
||||||
|
|||||||
Reference in New Issue
Block a user