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 / 2831
2830  |  2832
Subject: 
small patch to build dll on linux
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 5 Sep 2002 20:56:00 GMT
Viewed: 
2138 times
  
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 has 2 Replies:
  Re: small patch to build dll on linux
 
John, It looks like my patch to catch all WindowsOS broke for Linux. Ooops. I see an extra comma in there that should not be there. Could you try the following for me (or just remove the comma)? --- util/Makefile.common.old Thu Sep 5 16:51:27 2002 (...) (22 years ago, 6-Sep-02, to lugnet.robotics.rcx.legos)
  Re: small patch to build dll on linux
 
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 (...) (22 years ago, 12-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