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