Commit 5fa609b 1 parent cf7b6c6 commit 5fa609b Copy full SHA for 5fa609b
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,18 @@ help() {
9
9
echo " Replacement args:"
10
10
echo " --cxx @CXX@"
11
11
echo " --cxxflags $( echo ' @CXXFLAGS@' | fmt -w60 | sed ' :a;N;$!ba;s/\n/ \\\n /g' ) "
12
- echo " --ldflags @LINKFLAGS@"
13
- echo " --ldlibs @LIBS@"
12
+ echo " --linkflags @LINKFLAGS@"
13
+ echo " --ldflags (alias of --linkflags)"
14
+ echo " --libs @LIBS@"
15
+ echo " --ldlibs (alias of --libs)"
14
16
echo " --bindir @BINDIR@"
15
17
echo " --datdir @DATDIR@"
16
18
echo " "
17
19
echo " All other args are passed through as they are."
18
20
echo " "
19
21
echo " Use --exec to call a command instead of generating output. Example usage:"
20
22
echo " "
21
- echo " $0 --exec --cxx --cxxflags --ldflags -o plugin.so -shared plugin.cc --ldlibs "
23
+ echo " $0 --exec --cxx --cxxflags --ldflags -o plugin.so -shared plugin.cc --libs "
22
24
echo " "
23
25
echo " The above command can be abbreviated as:"
24
26
echo " "
44
46
45
47
if [ " $1 " == " --build" ]; then
46
48
modname=" $2 " ; shift 2
47
- set -- --exec --cxx --cxxflags --ldflags -o " $modname " -shared " $@ " --ldlibs
49
+ set -- --exec --cxx --cxxflags --ldflags -o " $modname " -shared " $@ " --libs
48
50
fi
49
51
50
52
prefix=" --"
@@ -63,6 +65,10 @@ for opt; do
63
65
tokens=( " ${tokens[@]} " @CXX@ ) ;;
64
66
" $prefix " cxxflags)
65
67
tokens=( " ${tokens[@]} " @CXXFLAGS@ ) ;;
68
+ " $prefix " linkflags)
69
+ tokens=( " ${tokens[@]} " @LINKFLAGS@ ) ;;
70
+ " $prefix " libs)
71
+ tokens=( " ${tokens[@]} " @LIBS@ ) ;;
66
72
" $prefix " ldflags)
67
73
tokens=( " ${tokens[@]} " @LINKFLAGS@ ) ;;
68
74
" $prefix " ldlibs)
You can’t perform that action at this time.
0 commit comments