Hi there,

for the readline6 package in Fink (a Mac OS X package manager), we are setting 
CPPFLAGS to point to an alternate system header root (since Fink does not 
manage the core OS, we do not touch the /usr file hierarchy, but rather use a 
separate hierarchy, usually under /sw -- so the readline files will be 
installed into /sw/includes and /sw/lib, etc.)

However, the readline build system puts CPPFLAGS before its own INCLUDES flags; 
the latter specify the search dirs . and ..

As a result, the compiler is told to first look into /sw/includes, and only 
*then* into "..".  This in turn meant that if there already is an installed 
version of readline present, then the installed headers get picked up, not the 
headers in the readline search archive.

The attached patch therefore swaps the order of CPPFLAGS and INCLUDES.


Cheers,
Max

Attachment: 0001-Swap-order-of-CPPFLAGS-and-INCLUDES-to-ensure-readli.patch
Description: Binary data


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to