diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-08 18:05:40 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-08 18:05:40 +0000 |
commit | d78db01cb72a0e84d0d03b56996f085d1a95abc6 (patch) | |
tree | dc98c2681f942a2922da60f6173251ddc15c202e /netsvcs/lib/Makefile | |
parent | 0e4675e776291c87e5319796e43578c9628f4703 (diff) | |
download | ATCD-d78db01cb72a0e84d0d03b56996f085d1a95abc6.tar.gz |
on Linux w/egcs 1.0.1, compile with /usr/bin/g++ because egcs 1.0.1 chokes
Diffstat (limited to 'netsvcs/lib/Makefile')
-rw-r--r-- | netsvcs/lib/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/netsvcs/lib/Makefile b/netsvcs/lib/Makefile index b85221397d2..928b8408f5e 100644 --- a/netsvcs/lib/Makefile +++ b/netsvcs/lib/Makefile @@ -40,11 +40,26 @@ include $(ACE_ROOT)/include/makeinclude/rules.local.GNU # Local targets #---------------------------------------------------------------------------- -ifeq ($(SUPPRESS_DASH_G),1) -#### Build this target without -g on some platforms. -$(VDIR)Server_Logging_Handler.o $(VSHDIR)Server_Logging_Handler.$(SOEXT): +ifeq ($(CXX),g++) + ifeq ($(shell uname),Linux) + ifeq ($(shell \ + g++ --version | grep egcs-1.0.1 | sed 's/.*\(egcs-1.0.1\).*/\1/'),\ + egcs-1.0.1) + # Build Server_Logging_Handler.so with g++ 2.7.2.3. egcs 1.0.1 + # raises an internal compiler error when trying to build it. This + # assumes that g++ 2.7.2.3 is still installed as /usr/bin/g++. + $(VDIR)Server_Logging_Handler.o $(VSHDIR)Server_Logging_Handler.$(SOEXT): + /usr/bin/g++ -v `echo $(CCFLAGS) | sed 's/ -fno-exceptions//'` \ + -DACE_LINUX_EGCS $(CPPFLAGS) $(PTDIRS) -c -o $@ $< + endif # egcs-1.0.1 + endif # Linux +else # ! g++ + ifeq ($(SUPPRESS_DASH_G),1) + #### Build this target without -g on some platforms. + $(VDIR)Server_Logging_Handler.o $(VSHDIR)Server_Logging_Handler.$(SOEXT): $(COMPILE-NO_DASH_G.cc) -o $@ $< -endif # SUPPRESS_DASH_G + endif # SUPPRESS_DASH_G +endif # ! g++ #---------------------------------------------------------------------------- # Dependencies |