moved LNKER_ARGS to the end of command
This commit is contained in:
parent
d72aa0c809
commit
2bebe76c7e
@ -3,6 +3,7 @@
|
|||||||
+ added task `sanitize`
|
+ added task `sanitize`
|
||||||
+ default C++ standard set to `c++11`
|
+ default C++ standard set to `c++11`
|
||||||
+ added `INCLUDE` to `default.config`
|
+ added `INCLUDE` to `default.config`
|
||||||
|
+ moved `LINKER_ARGS` to the end of linkage command in `functions.sh` to properly link static libs
|
||||||
|
|
||||||
# v5
|
# v5
|
||||||
+ added task `clean`
|
+ added task `clean`
|
||||||
|
|||||||
@ -80,7 +80,7 @@ function link {
|
|||||||
local objects="$(find $OBJDIR/objects -name '*.o')
|
local objects="$(find $OBJDIR/objects -name '*.o')
|
||||||
$(find $OBJDIR/libs -name '*.a')"
|
$(find $OBJDIR/libs -name '*.a')"
|
||||||
myprint "${BLUE}objects: ${GRAY}$objects"
|
myprint "${BLUE}objects: ${GRAY}$objects"
|
||||||
local command="$CMP_CPP $args $(echo "$objects" | tr '\n' ' ') -o $OBJDIR/out/$outfile"
|
local command="$CMP_CPP $(echo "$objects" | tr '\n' ' ') $args -o $OBJDIR/out/$outfile"
|
||||||
myprint "$command"
|
myprint "$command"
|
||||||
if $command
|
if $command
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user