d/rules: strip -Wl, from dpkg-buildflags output 43/1743/2
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 23 Jun 2016 12:42:52 +0000 (14:42 +0200)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Thu, 23 Jun 2016 15:58:56 +0000 (15:58 +0000)
commit13238a66181156b55aa3015dfca690a5f590c5e7
treec23ffe9decf23cef0870f33dad73e85dfd3c9b8b
parentbee8a5722d59aaa5a7e058dec7000f8c5b294166
d/rules: strip -Wl, from dpkg-buildflags output

The DPKG build system adds a -Wl, to and EXTRA_LDFLAGS, by that the
flags provided by dpkg-buildflags become -Wl,-Wl,option which fails to
build.
Fix by filtering the -Wl, prefix before exporting.

Note: filtering with make text functions is hard if the pattern contains
a comma, so sed was chosen.

Change-Id: I9b91b86c80529855dfb1c5a52725c0d07a95e5c8
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
debian/rules