Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic loading under MACOSX #3065

Closed
vicuna opened this issue Dec 2, 2001 · 1 comment
Closed

Dynamic loading under MACOSX #3065

vicuna opened this issue Dec 2, 2001 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Dec 2, 2001

Original bug ID: 685
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Samuel Hériard
Version: 3.03 ALPHA+5 (2001-11-23)
OS: Darwin (MACOSX)
Submission from: reims-1-a7-65-152.dial.proxad.net (62.147.65.152)

a patch to get DL of C primitive working on MACOSX/Darwin, it needs dlcompat
(darwin cvs or http://fink.sourceforge.net/bindist/source/dlcompat-20010831.tar.gz)

cheers,

--
Samuel

cvs server: Diffing .
Index: configure

RCS file: /caml/ocaml/configure,v
retrieving revision 1.151
diff -r1.151 configure
383a384

need_underscore_before_symbols=false
436a438,442
-apple-darwin)
mksharedlib="cc -bundle -flat_namespace -undefined suppress -o"
sharedcccompopts="-fno-common"
need_underscore_before_symbols=true
shared_libraries_supported=true;;
442a449,451
if $need_underscore_before_symbols; then
echo "#define DL_NEEDS_UNDERSCORE_BEFORE_SYMBOLS" >> s.h
fi

cvs server: Diffing byterun
Index: byterun/unix.c

RCS file: /caml/ocaml/byterun/unix.c,v
retrieving revision 1.4
diff -r1.4 unix.c
171a172

#ifndef DL_NEEDS_UNDERSCORE_BEFORE_SYMBOLS
172a174,178
#else
char name[100] = "";
strcat (&_name[1], name);
return dlsym(handle, _name);
#endif

@vicuna
Copy link
Author

vicuna commented Nov 13, 2002

Comment author: administrator

Dynamic loading for Mac OS X implemented 2002-11-12 by DD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant