LDFLAGS problem

Robin Becker robin at reportlab.com
Tue Feb 22 04:39:14 EST 2011

On 21/02/2011 22:36, Philip Semanchuk wrote:
>>> 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?
> It's been a while since I built anything on FreeBSD, but one thing that jumps out at me is that you say you're building on 8.0 but the build output you gave us mentions 7.0. That doesn't sound right at all.
> Are you using ports?
duh, I was actually ahead of myself and the machine is indeed a 7.0 system
Robin Becker

More information about the Python-list mailing list