recompile with -fPIC

64 views
Skip to first unread message

Arpit Aggarwal

unread,
May 9, 2017, 3:06:11 PM5/9/17
to llgo-dev
Hi Andrew,

I am working on go project and using llgo for generating LLVM-IR through llgo.
llgo is working great.
But recently I moved to another system and when I am compiling the same working version, I am getting an error while building Go executable llgo-go.and it asks me to recompile with -fPIC flag.
I am not very good with cmake. Can you please tell me just where can I add this flag.
I would be really helpful.
I am attaching the error as a separate file.
Thank you very much in advance .


Thanks,
Arpit


make_error.txt

Andrew Wilkins

unread,
May 10, 2017, 8:58:28 PM5/10/17
to llgo...@googlegroups.com
I don't know, sorry. This is in the gofrontend Makefile somewhere. AFAIK, libtool should be adding -fPIC automatically. I don't know why it isn't doing that.
 

Thanks,
Arpit


--
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages