[omniORB] patch: support for compilation tuning using enviroment vars.

Bastiaan Bakker Bastiaan.Bakker@lifeline.nl
Mon Nov 18 15:41:01 2002


Hi, 

Included is a patch against omniORB 4.0.0 which enables tuning of
compilation flags using enviroment variables like CXXFLAGS, etc., as
advertised by ./configure --help.

Duncan, this is a repost of my mail './configure ignores CXXFLAGS, etc.'
of november 5th. Since it wasn't labeled as a patch you may have missed
it. If you haven't missed it but simply don't like it or didn't have
time to look at it, can you acknowledge that? 

Thanks,

Bastiaan Bakker
LifeLine Networks bv

Index: mk/beforeauto.mk.in
===================================================================
RCS file: /opt/cvs/sourceroot/omniorb/omniORB4/mk/beforeauto.mk.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 beforeauto.mk.in
--- mk/beforeauto.mk.in 4 Nov 2002 16:32:23 -0000       1.1.1.1
+++ mk/beforeauto.mk.in 4 Nov 2002 23:33:16 -0000
@@ -85,11 +85,11 @@
                    -I$(TOP)/include -I$(BASE_OMNI_TREE)/include \
                    -D__OSVERSION__=@OSVERSION@

-CPPFLAGS = $(DIR_CPPFLAGS) $(IMPORT_CPPFLAGS)
+CPPFLAGS = @CPPFLAGS@ $(DIR_CPPFLAGS) $(IMPORT_CPPFLAGS)

-CFLAGS = $(CDEBUGFLAGS) $(COPTIONS) $(CPPFLAGS)
+CFLAGS = @CFLAGS@ $(CDEBUGFLAGS) $(COPTIONS) $(CPPFLAGS)

-CXXFLAGS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(CPPFLAGS)
+CXXFLAGS = @CXXFLAGS@ $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(CPPFLAGS)



#############################################################################
@@ -694,12 +694,12 @@
 #
 # Default compiler rules
 #
-CDEBUGFLAGS     = -O
+CDEBUGFLAGS     =
 CLINK           = $(CC)
-CLINKOPTIONS    = $(CDEBUGFLAGS) $(COPTIONS)
-CXXDEBUGFLAGS   = -O2
+CLINKOPTIONS    = $(CFLAGS) $(CDEBUGFLAGS) $(COPTIONS)
+CXXDEBUGFLAGS   =
 CXXLINK         = $(CXX)
-CXXLINKOPTIONS  = $(CXXDEBUGFLAGS) $(CXXOPTIONS)
+CXXLINKOPTIONS  = $(CXXFLAGS) $(CXXDEBUGFLAGS) $(CXXOPTIONS)



###########################################################################