Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > LDFLAGS problem

Thread Tools

LDFLAGS problem

Robin Becker
Posts: n/a
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 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/
> 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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ruby and LDFLAGS Michal 'hramrach' Suchanek Ruby 3 11-10-2004 04:59 AM
1.8.2preview2 does not use LDFLAGS Michal 'hramrach' Suchanek Ruby 8 09-13-2004 09:48 AM
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM