Felix wrote: >> -- csc-orig.scm 2013-02-12 20:47:23.194996000 -0800 >> csc.scm 2013-02-12 20:47:23.194996000 -0800 >> @@ -274,7 274,9 @@ >> (else >> (list (conc "-L\"" library-dir "\"")))) >> (if (and deployed (eq? (software-version) 'freebsd)) >> - (list "-z origin") >> (if (string=? compiler "clang") >> (list "") >> (list "-z origin")) >> '()) >> (cond ((get-environment-variable "CHICKEN_C_LIBRARY_PATH") => >> (lambda (path) >> > > I'm not sure what to do here. The patch looks good but if this is a > bug in clang (as suggested by John), then should it be worked around > in csc?
The correct thing to do here is to change '-z origin' into '-Wl,-z,origin'. This way both GCC and Clang will do the right thing. (I currently tested this by compiling C files; I'll be able to test csc modified that way in a dozen of hours or so, unless any of you folks do it first). _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
