Some distributions put --as-needed in pkg-config and fltk-config results. *See you in /dev/null*
This commit is contained in:
parent
1d25063d11
commit
9d253909f9
|
@ -273,7 +273,7 @@ require_package ()
|
|||
fi
|
||||
|
||||
name="`upcase \"$1\"`"
|
||||
append "${name}_LIBS=`pkg-config --libs $3`"
|
||||
append "${name}_LIBS=`pkg-config --libs $3 | sed 's/--as-needed//g'`"
|
||||
append "${name}_CFLAGS=-DHAVE_${1} `pkg-config --cflags $3`"
|
||||
|
||||
ok `pkg-config --modversion "$3"`
|
||||
|
@ -327,6 +327,6 @@ require_FLTK ()
|
|||
use="$use --use-$1"
|
||||
done
|
||||
|
||||
append "FLTK_LIBS=`fltk-config $use --ldflags`"
|
||||
append "FLTK_LIBS=`fltk-config $use --ldflags | sed 's/--as-needed//g'`"
|
||||
append "FLTK_CFLAGS=`fltk-config $use --cflags`"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue