blob: 1b5f1fd9ca16501a7b9ce7b9ce458202660b6aa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- Parser/Makefile.PL.orig 2016-02-02 23:36:13 UTC
+++ Parser/Makefile.PL
@@ -9,13 +9,15 @@ use Config;
sub MY::postamble {
my $out;
+
+ $CXX = $ENV{CXX};
#print Config::myconfig();
if ($Config{osname} !~ /cygwin/i && $Config{archname} !~ /cygwin/i
&& $Config{osname} !~ /darwin/i && $Config{archname} !~ /darwin/i) {
# Cygwin: Don't change LD, it breaks
# Sun: Requires g++ LD
# Linux: Either way
- $out .= "LD = g++\n";
+ $out .= "LD = $CXX\n";
}
# Note OPTIMIZE is passed from upper makefile, so this code needed there too.
my $optimize = $Config{optimize}; $optimize =~ s/(^| )-O2( |$)/\1-O\2/g;
@@ -50,7 +52,7 @@ sub MY::postamble {
$out .= "${cmt}CFLAGS += -DFLEX_DEBUG\n";
$out .= "LEXFLAGS += -d\n";
$out .= '
-CC = $(OBJCACHE) g++
+CC = $(OBJCACHE) $(CXX)
LEX = flex
YACC = bison
PPSRC = ../Preproc
|