Bug 57297 - build dbd.m4 sed command is too broad
Summary: build dbd.m4 sed command is too broad
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: HEAD
Hardware: PC Mac OS X 10.4
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-02 17:33 UTC by Poor Yorick
Modified: 2014-12-02 17:33 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poor Yorick 2014-12-02 17:33:36 UTC
Building apr-util-1.5.4 resulted in the error,

    ld: unrecognized option '--dynamic'

The gcc command line included

    -Wl,--dynamic-linker

Which had been transformed into

    -Wl,--dynamic

The culprit was the following ind build/dbd.m4

    mysql_LDFLAGS="`MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`"

One fix possible fix (maybe not the best):

    mysql_LDFLAGS="`MYSQL_CONFIG --libs_r | sed -e 's/\s-l[^ ]\+//g'`"