mirror of https://github.com/fltk/fltk
STR #1624: Added --optim option for fltk-config which returns all flags for compilation that are not returned by --cflags or --cxxflags.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
4102380d65
commit
b2e0a1b087
|
@ -58,6 +58,7 @@ CFLAGS="@CFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
|
|||
CXXFLAGS="@CXXFLAGS@ @LARGEFILE@ @PTHREAD_FLAGS@"
|
||||
LDFLAGS="@LDFLAGS@"
|
||||
LDLIBS="@LIBS@"
|
||||
OPTIM="@OPTIM@"
|
||||
|
||||
# Check for local invocation, and update paths accordingly...
|
||||
if test -f "$selfdir/FL/Fl_Window.H"; then
|
||||
|
@ -109,6 +110,7 @@ Options telling what we are doing:
|
|||
Options telling what information we request:
|
||||
[--cc] return C compiler used to compile FLTK
|
||||
[--cxx] return C++ compiler used to compile FLTK
|
||||
[--optim] return compiler optimization used to compile FLTK
|
||||
[--cflags] return flags to compile C using FLTK
|
||||
[--cxxflags] return flags to compile C++ using FLTK
|
||||
[--ldflags] return flags to link against FLTK
|
||||
|
@ -159,6 +161,9 @@ do
|
|||
--cxx)
|
||||
echo $CXX
|
||||
;;
|
||||
--optim)
|
||||
echo_optim=yes
|
||||
;;
|
||||
--use-gl | --use-glut)
|
||||
use_gl=yes
|
||||
;;
|
||||
|
@ -284,6 +289,10 @@ if test "$echo_cxxflags" = "yes"; then
|
|||
echo $includes $CXXFLAGS
|
||||
fi
|
||||
|
||||
if test "$echo_optim" = "yes"; then
|
||||
echo $OPTIM
|
||||
fi
|
||||
|
||||
if test "$echo_ldflags" = "yes"; then
|
||||
my_libs=
|
||||
libdirs=$libs
|
||||
|
|
Loading…
Reference in New Issue