Do not clobber CPPFLAGS nor LDFLAGS, fixes #10093
authorPHO <pho@cielonegro.org>
Wed, 18 Feb 2015 15:46:30 +0000 (09:46 -0600)
committerAustin Seipp <austin@well-typed.com>
Wed, 18 Feb 2015 15:46:30 +0000 (09:46 -0600)
commit9caf71a8d9293cfebdbb5b28e2d6a455ad126882
tree492dbc5a4d5485ed2274612ac3984c15c71b7e22
parent91d9530525803403c3c012901115d54ff4fc3b5e
Do not clobber CPPFLAGS nor LDFLAGS, fixes #10093

Summary: Append -I/-L flags to CPPFLAGS/LDFLAGS instead of clobbering.

Test Plan: Install libiconv into /some/non-standard/path. Set CONF_GCC_LINKER_OPTS_STAGE{0,1,2} to -Wl,-rpath,/some/non-standard/path/lib. And then run ./configure with arguments --with-iconv-includes=/some/non-standard/path/include and --with-iconv-libraries=/some/non-standard/path/lib

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: thomie, PHO

Differential Revision: https://phabricator.haskell.org/D663

GHC Trac Issues: #10093
libraries/base/configure.ac