Raised This Month: $4 Target: $400

Clang 3.8 enable link time optimization

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Veteran Member
Join Date: Nov 2012
Old 04-24-2020 , 07:09   Clang 3.8 enable link time optimization
Reply With Quote #1

I'm trying to build my CEntity-based extensions with '-flto' option following this instruction:

basecally I replaced /usr/bin/ld with /usr/bin/ld.gold and added '-flto' to cxx.cflags in AMBuildScript

And I get these errors for some object files in my extensions:
/usr/bin/ld: error: extension.o:1:3: invalid character
/usr/bin/ld: error: extension.o:1:3: syntax error, unexpected $end
/usr/bin/ld: error: extension.o: not an object or archive

Last edited by kadet.89; 04-24-2020 at 07:10.
kadet.89 is online now
Send a message via Skype™ to kadet.89

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 18:02.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode