Skip to content

Commit

Permalink
Remove the dl_needs_underscore feature (#2115)
Browse files Browse the repository at this point in the history
This feature could not be enabled anyway
  • Loading branch information
shindere committed Oct 25, 2018
1 parent 50da048 commit 6eea292
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions configure
Expand Up @@ -762,7 +762,6 @@ esac
# Shared library support

shared_libraries_supported=false
dl_needs_underscore=false
sharedlib_cflags=''
mksharedlib='shared-libs-not-available'
rpath=''
Expand All @@ -783,7 +782,6 @@ if $with_sharedlibs; then
mksharedlib="$cc -shared -flat_namespace -undefined suppress \
-Wl,-no_compact_unwind"
common_cflags="$dl_defs $common_cflags"
dl_needs_underscore=false
shared_libraries_supported=true;;
*-*-linux*|*-*-freebsd[3-9]*|*-*-freebsd[1-9][0-9]*\
|*-*-openbsd*|*-*-netbsd*|*-*-dragonfly*|*-*-gnu*|*-*-haiku*)
Expand Down Expand Up @@ -1396,9 +1394,6 @@ fi
if $shared_libraries_supported; then
inf "Dynamic loading of shared libraries is supported."
echo "#define SUPPORT_DYNAMIC_LINKING" >> s.h
if $dl_needs_underscore; then
echo '#define DL_NEEDS_UNDERSCORE' >>s.h
fi
fi

if sh ./hasgot -i sys/types.h -i sys/mman.h && sh ./hasgot mmap munmap; then
Expand Down
5 changes: 0 additions & 5 deletions runtime/unix.c
Expand Up @@ -286,11 +286,6 @@ void caml_dlclose(void * handle)

void * caml_dlsym(void * handle, const char * name)
{
#ifdef DL_NEEDS_UNDERSCORE
char _name[1000] = "_";
strncat (_name, name, 998);
name = _name;
#endif
return dlsym(handle, name);
}

Expand Down

0 comments on commit 6eea292

Please sign in to comment.