LDFLAGS problem

Discussion in 'Python' started by Robin Becker, Feb 21, 2011.

  1. Robin Becker

    Robin Becker Guest

    After installing python 2.7.1 on a Freebsd 8.0 system with the normal configure
    make dance

    ../configure --prefix=$HOME/PYTHON --enable-unicode=ucs2
    make
    make install

    I find that when I build extensions PIL, MySQLdb I'm getting errors related to a
    dangling ${LDFLAGS}

    eg MySQLdb

    > running build_ext
    > building '_mysql' extension
    > creating build/temp.freebsd-7.0-RELEASE-i386-2.7
    > gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/include/mysql -I/home/rptlab/PYTHON/include/python2.7 -c _mysql.c -o build/temp.freebsd-7.0-RELEASE-i386-2.7/_mysql.o -fno-strict-aliasing -pipe
    > gcc -pthread -shared ${LDFLAGS} build/temp.freebsd-7.0-RELEASE-i386-2.7/_mysql.o -L/usr/local/lib/mysql -lmysqlclient_r -lz -lcrypt -lm -o build/lib.freebsd-7.0-RELEASE-i386-2.7/_mysql.so
    > gcc: ${LDFLAGS}: No such file or directory
    > error: command 'gcc' failed with exit status 1


    where should I be looking to fix this problem?
    --
    Robin Becker
     
    Robin Becker, Feb 21, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,997
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,179
    Ted Miller
    Sep 13, 2003
  3. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    558
    Bullschmidt
    May 11, 2004
  4. Michal 'hramrach' Suchanek

    1.8.2preview2 does not use LDFLAGS

    Michal 'hramrach' Suchanek, Sep 7, 2004, in forum: Ruby
    Replies:
    8
    Views:
    169
    Michal 'hramrach' Suchanek
    Sep 13, 2004
  5. Michal 'hramrach' Suchanek

    ruby and LDFLAGS

    Michal 'hramrach' Suchanek, Oct 29, 2004, in forum: Ruby
    Replies:
    3
    Views:
    254
Loading...

Share This Page