[cfe-dev] Building clang and llvm on OpenBSD 4.8+

Amit Kulkarni amitkulz at gmail.com
Wed Nov 3 14:58:18 PDT 2010


Hi,

I am @ revision 118197. I built clang like this
../llvm/configure --enable-optimized --enable-shared

I had to remove the local: *; from the same files in Release+Asserts
directory. I don't know why it didn't pick up the version script
changes. Anyway its minor.

CLANG_BIN_DIR/tools/lto/Release+Asserts/lto.exports.map
CLANG_BIN_DIR/tools/edis/Release+Asserts/EnhancedDisassembly.exports.map
CLANG_BIN_DIR/tools/clang/tools/libclang/Debug+Asserts/libclang.exports.map
CLANG_BIN_DIR/runtime/libprofile/Debug+Asserts/libprofile.exports.map

Clang builds with shared libs too.

clang went from 600 Megs down to 14 Megs when enable shared is turned on.

Thanks a lot!

On Wed, Nov 3, 2010 at 3:52 PM, Amit Kulkarni <amitkulz at gmail.com> wrote:
> I did a svn up, will try out your changes.
>
> I don't know! Trying out the release+asserts with enable shared.
>
> Thanks
>
> On Wed, Nov 3, 2010 at 3:33 PM, Vladimir Kirillov <proger at uaoug.org.ua> wrote:
>> On 15:21 Wed 03 Nov, Amit Kulkarni wrote:
>>> I just want to report that clang + llvm, sources grabbed from early
>>> today built a Debug+Asserts just fine on OpenBSD -current AMD64 which
>>> was itself built yesterday!
>>>
>>> OpenBSD 4.8+ AMD64 system compiler is gcc/g++ 4.2.1
>>>
>>> I had to following MINOR modifications to make it happen.
>>>
>>> 1) I just had to remove a line reproduced below @ around the end of
>>> file in following files
>>>
>>> local: *;                        ==> Offending line
>>
>> I just turned off the version scripts :)
>>
>> Does ENABLE_SHARED = 1 work on amd64 as well?
>>
>




More information about the cfe-dev mailing list