|
Lines 1-20
Link Here
|
| 1 |
--- Makefile.PL.orig Wed Oct 25 15:27:13 2000 |
1 |
--- Makefile.PL.orig Sun Jul 7 14:24:33 2002 |
| 2 |
+++ Makefile.PL Tue Oct 15 20:38:18 2002 |
2 |
+++ Makefile.PL Tue May 13 14:40:46 2003 |
| 3 |
@@ -14,9 +14,9 @@ |
3 |
@@ -14,7 +14,7 @@ |
| 4 |
server.o |
4 |
server.o |
| 5 |
types.o); |
5 |
types.o); |
| 6 |
|
6 |
|
| 7 |
-$orbit_cflags = `orbit-config --cflags client server`; |
7 |
-$orbit_version = `orbit-config --version`; |
| 8 |
+chomp($orbit_cflags = `orbit-config --cflags client server`); |
8 |
+chomp($orbit_version = `orbit-config --version`); |
| 9 |
undef $orbit_cflags if $?; |
9 |
undef $orbit_version if $?; |
| 10 |
-$orbit_libs = `orbit-config --libs client server`; |
|
|
| 11 |
+chomp($orbit_libs = `orbit-config --libs client server`); |
| 12 |
undef $orbit_libs if $?; |
| 13 |
|
10 |
|
| 14 |
if (!defined $orbit_libs) { |
11 |
if (!defined $orbit_version) { |
| 15 |
@@ -24,6 +24,16 @@ |
12 |
@@ -41,6 +41,16 @@ |
| 16 |
exit 1; |
13 |
chomp($orbit_libs = `orbit-config --libs client server`); |
| 17 |
} |
14 |
#$orbit_libs .= ' -R/opt/ORBit/lib '; |
| 18 |
|
15 |
|
| 19 |
+chomp($idl_cflags = `libIDL-config --cflags`); |
16 |
+chomp($idl_cflags = `libIDL-config --cflags`); |
| 20 |
+undef $idl_cflags if $?; |
17 |
+undef $idl_cflags if $?; |
|
Lines 29-48
Link Here
|
| 29 |
if ($] < 5.0045) { |
26 |
if ($] < 5.0045) { |
| 30 |
print STDERR "Using compatibility macros/routines for Perl 5.004\n"; |
27 |
print STDERR "Using compatibility macros/routines for Perl 5.004\n"; |
| 31 |
push @OBJECTS,'constsub.o'; |
28 |
push @OBJECTS,'constsub.o'; |
| 32 |
@@ -32,13 +42,13 @@ |
29 |
@@ -50,9 +60,9 @@ |
| 33 |
WriteMakefile( |
|
|
| 34 |
'NAME' => 'CORBA::ORBit', |
30 |
'NAME' => 'CORBA::ORBit', |
| 35 |
'VERSION_FROM' => 'ORBit.pm', |
31 |
'VERSION_FROM' => 'ORBit.pm', |
|
|
32 |
'PREREQ_PM' => { 'Error' => 0.12 }, |
| 36 |
- 'LIBS' => [$orbit_libs." -lIDL"], |
33 |
- 'LIBS' => [$orbit_libs." -lIDL"], |
| 37 |
+ 'LIBS' => ["$orbit_libs $idl_libs"], |
34 |
+ 'LIBS' => ["$orbit_libs $idl_libs"], |
| 38 |
'DEFINE' => |
35 |
'DEFINE' => ($] < 5.0045 ? '-DPERL5004_COMPAT ' : ''), |
| 39 |
($] < 5.0045 ? '-DPERL5004_COMPAT ' : ''), |
|
|
| 40 |
- 'INC' => $orbit_cflags, |
36 |
- 'INC' => $orbit_cflags, |
| 41 |
+ 'INC' => "$orbit_cflags $idl_cflags", |
37 |
+ 'INC' => "$orbit_cflags $idl_cflags", |
| 42 |
'OBJECT' => join(" ", @OBJECTS), |
38 |
'OBJECT' => join(' ', @OBJECTS), |
|
|
39 |
'XSOPT' => '-prototypes', |
| 43 |
# 'XSOPT' => '-nolinenumbers', |
40 |
# 'XSOPT' => '-nolinenumbers', |
| 44 |
- 'OPTIMIZE' => '-g -Wall', |
|
|
| 45 |
+ 'OPTIMIZE' => '-Wall', |
| 46 |
# 'OPTIMIZE' => '-O2 -Wall', |
| 47 |
'MAP_TARGET' => 'orbitperl', |
| 48 |
# 'MAKEAPERL' => 1, |