[plt-scheme] mzc's ++ldf flag

From: Jakub Piotr Cłapa (jpc at pld-linux.org)
Date: Sat Nov 25 19:25:54 EST 2006

I have a problem with the ++ldf flag of mzc:
jpc at jpc ~/Projects/avr] mzc --exe avrp ++ldf "-framework IOKit -lusb"
mzc version 360, Copyright (c) 2004-2006 PLT Scheme Inc.
  [output to "avrp"]
[jpc at jpc ~/Projects/avr] otool -L avrp

(compatibility version 0.0.0, current version 0.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 71.1.4)

So it seems to completely ignore this flag (I assume it should link to
libusb and IOKit). ++ldl usb doesn't work either. It seems mzc doesn't
call the linker at all because adding nonsense flags doesn't result in
any errors (kdump also doesn't show any execves).

The libusb is loaded by means of foreign.ss which fails to load IOKit
automaticaly so I tried to link it by hand in hope it will find the
symbols. Even if this is not the way to go mzc still behaves strangely.

Jakub Piotr Cłapa

Posted on the users mailing list.