Results 1 to 5 of 5

Thread: configure always builds static libraries

  1. #1

    configure always builds static libraries

    I'm compiling libvorbis on OS X, and it seems OS X doesn't like you statically linking libraries, and when i make it gives the following errors.

    ld: can't locate file for: -lcrt0.o

    this is what apple says regarding the above

    Q: I'm trying to link my binary statically, but it's failing to link
    because it can't find 'crt0.o.' Why?

    A: Static linking of user binaries is not supported on Mac OS X. Tying
    user binaries to the internal implementation of Mac OS X libraries and
    interfaces would limit our ability to update and enhance Mac OS X.
    Instead, dynamic linking is supported (linking against crt1.o
    automatically instead of looking for crt0.o, for example)
    so i try to use ./configure --enable-static=no and even ./configure --disable-static (both perfectly valid, as per ./configure --help says). And yet it still wants to build static libraries. It does this with ImageMagick as well, I cannot make it not happen.

    Any ideas?

  2. #2

    Re:configure always builds static libraries

    maybe consulting the developers of the projects?

  3. #3

    Re:configure always builds static libraries

    Yeah. I managed to make it stop building static libraries all the time (and instead build 'shared' libraries, if that's any different :-/) and I get the same error. Looks like i'll have to post on the mailing list :-(
    thanks anyway, Countach44


    edit: just grabbed libvorbis from fink. no idea why i didn't just do it before.
    - Sean

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Posts
    76

    Re:configure always builds static libraries

    likely you were missing s dependency somewhere libvorbis built without issue son my powerbook

  5. #5

    Re:configure always builds static libraries

    shared libraries are dynamic btw.

    I think the problem was not that it was building static libraries but that it was trying to link to static libraries.

Similar Threads

  1. setting static IP on network with no static IP address from internet provider?
    By solvetek in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 11-16-2011, 07:23 AM
  2. Python P2P Libraries
    By Ashcrow in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-20-2005, 02:05 AM
  3. Decision tree libraries?
    By ndogg in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-15-2002, 04:30 PM
  4. GnomePrint libraries >= 0.25
    By nfallon in forum Linux - Software, Applications & Programming
    Replies: 13
    Last Post: 01-02-2002, 01:29 PM
  5. Installing libraries
    By LiveWyre in forum Linux - General Topics
    Replies: 2
    Last Post: 11-23-2001, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •