Fix standard_configure.sh for out-of-source builds

See: https://trac.macports.org/ticket/28001
This commit is contained in:
Ryan Carsten Schmidt
2024-04-04 00:29:25 -05:00
committed by Ryan Carsten Schmidt
parent 0b9ef4fccb
commit e185203ec0
+3 -1
View File
@@ -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