diff options
author | iwalkalone <iwalkalone69@gmail.com> | 2019-04-22 02:35:55 +0200 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-04-22 02:01:36 +0100 |
commit | 56c94774286e0be9de8b05d4ae4e752a394f7146 (patch) | |
tree | 6464275c970a7eb6330d4722d2f3a704e37523fc /make | |
parent | 49fef4ef75d9adb750661c79d317525b4717bb76 (diff) |
Link flags must be after compiled objects.
Diffstat (limited to 'make')
-rwxr-xr-x | make/unit-cc.pl | 2 |
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; } |