atheme / libmowgli-2

mowgli development framework (version 2) -- generic runtime for atheme applications
Other
149 stars 31 forks source link

Use host tools for 'ar' and 'ranlib' #49

Closed clinew closed 4 years ago

clinew commented 4 years ago

This fixes a bug filed against the Gentoo ebuild (https://bugs.gentoo.org/show_bug.cgi?id=723028) which concerns using different versions of ar depending on the host's configuration. God only knows why llvm has to have a special snowflake version of ar :).

I'm not sure why the runstatedir portion of the configuration file changed once I re-generated it with the changes made to configure.ac, or whether or not those changes are desired. If the change is bad, please let me know if you need me to do anything in order to fix it here.

aaronmdjones commented 4 years ago

Applied locally to avoid configure being mangled by your differing version of autotools.

aaronmdjones commented 4 years ago

As to why you should use llvm-ar when building with LLVM; the answer is that if you enable LTO mode (-flto to Clang), then the compiler emits LLVM bitcode, not (e.g. x86) machine code.

clinew commented 4 years ago

That was fast! Thanks for the merge and info about llvm-ar!