diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-05-30 14:58:47 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-05-30 14:58:47 +1000 |
commit | c59e7d5569f9943cd5a5b7caac8a3344146a8f1e (patch) | |
tree | 316014d344ca58dcb1f57c6dae71aa1cd36dae5a /source4/build/smb_build | |
parent | b34bc408e741919b893a325616de432e8a630e10 (diff) | |
download | samba-c59e7d5569f9943cd5a5b7caac8a3344146a8f1e.tar.gz samba-c59e7d5569f9943cd5a5b7caac8a3344146a8f1e.tar.bz2 samba-c59e7d5569f9943cd5a5b7caac8a3344146a8f1e.zip |
Reorder the linking of objects into a binary.
The hope here is to get 'main' closer to the front of the binary,
which might help linking of PPC with gcov (we were overflowing the
24bit limit on the TOC)
Andrew Bartlett
(This used to be commit 7646574411b753794f1b8712612a91940407f8d7)
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r-- | source4/build/smb_build/makefile.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 73801c25fd..0ea31062f7 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -208,9 +208,9 @@ sub Binary($$) $self->_prepare_list($ctx, "LINK_FLAGS"); if (defined($ctx->{USE_HOSTCC}) && $ctx->{USE_HOSTCC} eq "YES") { -$self->output("\$(call host_binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_DEPEND_LIST) \$($ctx->{NAME}_FULL_OBJ_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n"); +$self->output("\$(call host_binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_FULL_OBJ_LIST) \$($ctx->{NAME}_DEPEND_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n"); } else { -$self->output("\$(call binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_DEPEND_LIST) \$($ctx->{NAME}_FULL_OBJ_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n"); +$self->output("\$(call binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_FULL_OBJ_LIST) \$($ctx->{NAME}_DEPEND_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n"); } } |