pre-configure/gnu-configure-asneeded.sh: do nothing if configure_script does not exist.
This commit is contained in:
parent
5e057f1d27
commit
affe0abc3e
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
||||||
hook() {
|
hook() {
|
||||||
: ${configure_script:=./configure}
|
: ${configure_script:=./configure}
|
||||||
|
|
||||||
|
if [ ! -f ${configure_script} ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
# http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html
|
# http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html
|
||||||
if [ -z "$broken_as_needed" -a "$build_style" = "gnu-configure" ]; then
|
if [ -z "$broken_as_needed" -a "$build_style" = "gnu-configure" ]; then
|
||||||
sed -i "s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/" ${configure_script}
|
sed -i "s/^\([ \t]*tmp_sharedflag\)='-shared'/\1='-shared -Wl,--as-needed'/" ${configure_script}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue