While I understood what you mean and I have tried that, but it starts screaming at me with
Code:
/bin/sh: -D_REENTRANT: not found
on every line.
On a second look it looks like I had to manually add the perl libs to the variable lines and fix the fact they were not executed in shell first (like you stated and I was close to resolving). Check the output of diff from std makefile.a64 (makefile.bak for me) and the one I used (makefile)
Code:
$ diff makefile makefile.bak
17,18c17,18
< PERL_FLAGS=$(shell perl -MExtUtils::Embed -e ccopts)
< PERL_LIB=$(shell perl -MExtUtils::Embed -e ldopts)
---
> PERL_FLAGS=perl -MExtUtils::Embed -e ccopts
> PERL_LIB=perl -MExtUtils::Embed -e ldopts
22,23c22,23
< COPTS=$(WFLAGS) -O -g -pg -march=athlon64 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS)$(PERL_FLAGS)
< LINKOPTS=$(COPTS) -rdynamic -L. -lstdc++ -ldl $(MYSQL_LIB) $(PERL_LIB)
---
> COPTS=$(WFLAGS) -O -g -pg -march=athlon64 -pthread -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS)
> LINKOPTS=$(COPTS) -rdynamic -L. -lstdc++ -ldl $(MYSQL_LIB)