Mail Archives: djgpp/1996/02/25/17:35:50
Xref: | news2.mv.net comp.os.msdos.djgpp:1422
|
From: | @megabaud.fi (Teemu Takanen)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Compiling without libgcc.a
|
Date: | 23 Feb 1996 10:10:45 GMT
|
Organization: | DKS
|
Lines: | 24
|
Message-ID: | <4gk3r5$95h@news.mdata.fi>
|
Reply-To: | teemut AT megabaud DOT fi
|
NNTP-Posting-Host: | walrus.megabaud.fi
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm currently writing a freeware game with djgpp v.2.0.
However I don't want that my program is under GNU licence, since
I don't want do share it's sources. How can I be sure the executable
doesn't use any libraries that are under that licence?
Curretly I compile program like this:
gcc -c -o myprog.o myprog.cpp -O2 -Wall -m386 -fpack-struct -save-temps
gcc -c -o myprog2.o myprog2.cpp -O2 -Wall -m386 -fpack-struct -save-temps
gcc -o myprog.cof myprog2.o myprog.o -lemu -save-temps
stubify myprog
When I removed file libgcc.a from lib directory it tries to find it and
libgcc.a is one of the files under GNU licence. I've tried to use
-nodefaultlibs but gcc doesn't seem to know that option.
I don't use any C++ iostream funktions, but my own code
uses a lot of classes, new, delete and other C++ spesific
things so I can't compile them as C and converting would
be a nighmare.
Teemu Takanen
teemut AT megabaud DOT fi
- Raw text -