Changeset 5954


Ignore:
Timestamp:
Feb 22, 2007, 1:27:58 AM (18 years ago)
Author:
Gary Byers
Message:

Tell GNU ld to use the traditional (sysv) style of hash maps, if it
understands that option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/linuxx8664/Makefile

    r4948 r5954  
    2525COPT = -O2
    2626
     27# If the linker supports a "--hash-style=" option, use traditional
     28# Sysv hash tables.  (If it doesn't support that option, assume
     29# that traditional hash tables will be used by default.)
     30ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
     31ifeq ($(ld_has_hash_style),)
     32HASH_STYLE=
     33else
     34HASH_STYLE="-Wl,--hash-style=sysv"
     35endif
    2736
    2837
     
    5867
    5968../../lx86cl64: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile  $(LINK_MAP)
    60         $(CC)  -m64 $(CDEBUG)  -Wl,--export-dynamic -o $@ $(USE_LINK_MAP) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
     69        $(CC)  -m64 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ $(USE_LINK_MAP) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
    6170
    6271
Note: See TracChangeset for help on using the changeset viewer.