1 diff -ruN a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in
2 --- a/misc/gen-pkgconfig.in 2021-08-07 23:36:33.000000000 +0200
3 +++ b/misc/gen-pkgconfig.in 2021-11-03 11:12:51.127160950 +0100
8 -for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ @LIBS@
9 +for opt in -L$libdir @LIBS@
12 -l*) # LIBS is handled specially below
13 diff -ruN a/misc/ncurses-config.in b/misc/ncurses-config.in
14 --- a/misc/ncurses-config.in 2021-08-07 23:36:14.000000000 +0200
15 +++ b/misc/ncurses-config.in 2021-11-03 11:26:12.393533954 +0100
17 # There is no portable way to find the list of standard library directories.
18 # Require a POSIX shell anyway, to keep this simple.
20 -for opt in -L$libdir @EXTRA_PKG_LDFLAGS@ $LIBS
21 +for opt in -L$libdir $LIBS
24 -specs*) # ignore linker specs-files which were used to build library