Re: Antoher linuxfix
[email protected] Tue, 25 Jan 2005 13:25:40 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Hmm, I'll try again. My mailclient displaced the attachment. Quoting [email protected]: > Here's a patch to build static libs in Linux. > > Lars Ivar Igesund > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > A-A-P-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/a-a-p-develop >
dmd.diff
(text/x-diff, 1.1 KB)
Index: dmd.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/tools/dmd.py,v
retrieving revision 1.12
diff -u -r1.12 dmd.py
--- dmd.py 23 Oct 2004 11:38:19 -0000 1.12
+++ dmd.py 25 Jan 2005 08:12:45 -0000
@@ -78,7 +78,7 @@
:progsearch LIB lib
:sys $LIB $?DLINKFLAGS -p512 -c $target $source
@else:
- :sys $DMD $?DLINKFLAGS -of$target $source
+ :sys $AR -r $target $source
""",
outtypes = ["default"],
intypes = ["libobject"])
@@ -138,11 +138,14 @@
dbg = -g
:sys $DMD -c $?DFLAGS $?DVERSION $opt $dbg $?DDEBUG $?DIMPORT
-op $source
- :progsearch LIB lib
BDIR =
objects = `src2obj(source)`
- :sys $LIB $?DLINKFLAGS -p512 -c $target $objects
- :del {f} {q} *.obj
+ @if os.name == "nt":
+ :progsearch LIB lib
+ :sys $LIB $?DLINKFLAGS -p512 -c $target $objects
+ @else:
+ :sys $AR -r $target $source
+ :del {f} {q} *.$OBJSUF
""",
outtypes = ["default"],
intypes = ["d"])