Changing APR inline values ​​returned by apr-1-config?

Is it possible to change the built-in APR values ​​without recompiling the APR? Or is there a way to edit and "reload" APR configuration files?

OS X 10.8 has some bad values ​​built into the Apache Portable Runtime Library. These values ​​cause problems with compilation of software whose makefiles depend on the received APR values.

In particular, the CC values ​​reported by both apr-1-config and apxs indicate a nonexistent Xcode Toolchain ( OSX10.8.xctoolchain instead of XcodeDefault.xctoolchain ). It would also be nice to tell apxs use a different version of libtool .

The values ​​are apparently pulled from some combination of /usr/share/apr-1/build-1/apr_rules.mk and /usr/share/httpd/build/config_vars.mk . Editing config_vars.mk will change the results of requests to apxs , but will not affect the output from apr-1-config . I changed the libtool definition in config_vars.mk to point to / usr / bin / and got the following:

 $ apxs -q LIBTOOL /usr/bin/libtool --silent // modified $ apr-1-config --apr-libtool /usr/share/apr-1/build-1/libtool // default value 

Neither apxs nor apr-1-config reflected such changes on apr_rules.mk . Unfortunately, I suspect that my problem is with the values ​​returned by apr-1-config .

More:

A simple workaround is to simply reference the xctoolchain as described here: Homebrew Issue # 13586

 sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain 
+4
source share

All Articles