summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriwalkalone <iwalkalone69@gmail.com>2019-04-22 02:35:55 +0200
committerPeter Powell <petpow@saberuk.com>2019-04-22 02:01:36 +0100
commit56c94774286e0be9de8b05d4ae4e752a394f7146 (patch)
tree6464275c970a7eb6330d4722d2f3a704e37523fc
parent49fef4ef75d9adb750661c79d317525b4717bb76 (diff)
Link flags must be after compiled objects.
-rwxr-xr-xmake/unit-cc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index 311c4c260..18e60d759 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -78,7 +78,7 @@ sub do_link_dir {
for my $file (<$dir/*.cpp>) {
$link_flags .= rpath(get_directive($file, 'LinkerFlags', '')) . ' ';
}
- my $execstr = "$ENV{CXX} -o $out $ENV{PICLDFLAGS} $link_flags @_";
+ my $execstr = "$ENV{CXX} -o $out $ENV{PICLDFLAGS} @_ $link_flags";
message 'LINK', $out, $execstr;
exec $execstr;
}