To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2851
2850  |  2852
Subject: 
Re: small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 12 Sep 2002 15:38:47 GMT
Viewed: 
2217 times
  
John,

I believe I have a good solution.  I ran a test both under Win98 and a
forced Linux OS (set OSTYPE=LINUX in makefiles).  Below is a patch file for
the current CVS version of brickOS.  As soon as I get confirmation that this
does fix my bug I will check it into CVS. Once again I am sorry for the
inconvenience.

--- util/Makefile.common Thu Sep  5 12:19:24 2002
+++ util/Makefile.common Thu Sep 12 11:26:34 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(strip $(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT) $(findstring CYGWIN,$(OSTYPE))))
  EXT=.exe
  CC =gcc
  CFLAGS+=-D_WIN32


Ed


John Jorgensen <jjorgens@2gn.com> wrote in message
news:Pine.LNX.4.21.0209051650100.22896-100000@2gn.com...
I had problems on Linux with building dll from CVS. Apparently, it thought
that I was running windows.

The simple patch below fixes the problem for me, but I don't know if it
leaves the cygwin build intact...

--- util/Makefile.common.old    Thu Sep  5 16:51:27 2002
+++ util/Makefile.common        Thu Sep  5 16:51:36 2002
@@ -22,7 +22,7 @@
#
# Windows/Cygnwin, test against several values:
#
-ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT • Windows_NT)||,$(findstring CYGWIN,$(OSTYPE)))
+ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT • CYGWIN))
        EXT=.exe
        CC =gcc
        CFLAGS+=-D_WIN32





Message is in Reply To:
  small patch to build dll on linux
 
I had problems on Linux with building dll from CVS. Apparently, it thought that I was running windows. The simple patch below fixes the problem for me, but I don't know if it leaves the cygwin build intact... --- util/Makefile.common.old Thu Sep 5 (...) (22 years ago, 5-Sep-02, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR