Problem with the new db-mysql makefile

Jussi Lahdenniemi <[email protected]> Tue, 08 Apr 2014 17:16:51 +0300
Newsgroups gmane.lisp.clsql.general
Message-ID <[email protected]>
Hello,

I just upgraded to the latest clsql with quicklisp, after which the 
db-mysql module failed to compile. Digging into the problem, the culprit 
was the new Makefile with its logic for finding out the ld flags:

LDFLAGS:=$(LDFLAGS) $(shell dpkg-buildflags --get LDFLAGS | sed 
"/-Wl,\(.*\)/ s//\1/g")

I was building clsql in the AWS EC2 environment; there dpkg-buildflags 
--get LDFLAGS results in the following:

-Wl,-Bsymbolic-functions -Wl,-z,relro

The regex above removes the first -Wl, but not the second one, which 
makes the linker unhappy. I fixed this by changing the regex to 
"/-Wl,\([^ ]*\)/ s//\1/g", you might want to incorporate something 
similar into the official version as well.

-- 
Jussi Lahdenniemi