> On Wed, Dec 09, 2009 at 04:37:00PM +0500, Mansur Mamkin wrote:
>> default on that Linux. So AltLinux team suggests to put -l<lib>
>> arguments after obj-files as this is more standard-compliant
>> (see also http://www.gentoo.org/proj/en/qa/asneeded.xml)
>
> This proposal makes sense.
>
> It would be nice if users of other OSes (especially Mac and Cygwin)
> could check if anything breaks.
>
> Cheers,
> - Alex

Hi,

I just downloaded the testing version of Pico Lisp, and tried Mansur's
Makefile patch, just modified for Mac/Darwin:

---
    OS = Darwin
-  PICOLISP-FLAGS = -m32 -rdynamic -lc -lm -ldl
+  PICOLISP-FLAGS = -m32 -rdynamic
    DYNAMIC-LIB-FLAGS = -m32 -shared -export-dynamic
+  LIBS = -lc -lm -ldl
    STRIP = :
.
$(bin)/picolisp: $(picoFiles:.c=.o)
    mkdir -p $(bin) $(lib)
-  gcc -o $(bin)/picolisp$(exe) $(PICOLISP-FLAGS) $(picoFiles:.c=.o)
+  gcc -o $(bin)/picolisp$(exe) $(PICOLISP-FLAGS) $(picoFiles:.c=.o) $(LIBS)
    $(STRIP) $(bin)/picolisp$(exe)

---

This seemed to work OK on my Intel Mac (OSX 10.5.8). I've spotted no
problem this far. Maybe I should run a complete test ... How do I do it?

/Jon
(at the time being in Budapest)


-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to