X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=misc%2Fncurses-config.in;h=c9f1cf80984366be481c397cb5d26d5b4124bef1;hb=59a39f19a7f7feeff4af587a289a2ad7966947fe;hp=7b02ac27dc30faaa8c4e612a943a9c0ab8deb062;hpb=0af9283ca273c267ee6036c3b88115d9ba6d55a6;p=ncurses.git diff --git a/misc/ncurses-config.in b/misc/ncurses-config.in index 7b02ac27..c9f1cf80 100644 --- a/misc/ncurses-config.in +++ b/misc/ncurses-config.in @@ -1,7 +1,7 @@ #!@SHELL@ -# $Id: ncurses-config.in,v 1.50 2021/08/07 21:36:14 tom Exp $ +# $Id: ncurses-config.in,v 1.52 2022/07/26 21:36:28 tom Exp $ ############################################################################## -# Copyright 2018-2020,2021 Thomas E. Dickey # +# Copyright 2018-2021,2022 Thomas E. Dickey # # Copyright 2006-2015,2017 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # @@ -113,6 +113,9 @@ do -Wl,--dynamic-linker*) # ignore ELF interpreter continue ;; + -Wl,--as-needed|-Wl,--build-id=*|-Wl,-dT,*|-Wl,-T,*) + continue + ;; -L*) lib_check=`echo "x$opt" | sed -e 's/^.-L//'` [ -d "$lib_check" ] || continue @@ -170,7 +173,7 @@ do lib_flags="$lib_flags $opt" done -[ $# = 0 ] && exec @SHELL@ $0 --error +[ $# = 0 ] && exec @SHELL@ "$0" --error while [ $# -gt 0 ]; do case "$1" in @@ -201,7 +204,7 @@ ENDECHO [ -n "$OPTS" ] && OPTS="$OPTS " OPTS="${OPTS}${opt}" done - printf "%s\n" "$OPTS" + printf '%s\n' "$OPTS" ;; --libs-only-L) OPTS= @@ -214,7 +217,7 @@ ENDECHO ;; esac done - printf "%s\n" "$OPTS" + printf '%s\n' "$OPTS" ;; --libs-only-l) OPTS= @@ -227,7 +230,7 @@ ENDECHO ;; esac done - printf "%s\n" "$OPTS" + printf '%s\n' "$OPTS" ;; --libs-only-other) OPTS= @@ -242,7 +245,7 @@ ENDECHO ;; esac done - printf "%s\n" "$OPTS" + printf '%s\n' "$OPTS" ;; # identification --version) @@ -268,7 +271,7 @@ ENDECHO elif [ "${includedir}" != /usr/include ]; then INCS="${includedir}" fi - echo $INCS + echo "$INCS" ;; --libdir) echo "${libdir}" @@ -288,7 +291,7 @@ ENDECHO # general info --help) cat <&2 + @SHELL@ "$0" --help 1>&2 exit 1 ;; esac