Changeset 8650


Ignore:
Timestamp:
Mar 4, 2008, 5:17:26 AM (12 years ago)
Author:
gb
Message:

Don't strip leading underscores from symbols. (At least when the
win64 GCC is hosted on Cygwin, C symbols seem to have leading underscores,
and assembler expects them to.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/win64/Makefile

    r8626 r8650  
    3939endif
    4040
     41# There may be some confusion about whether or not C symbols have
     42# leading underscores or not.  The assembler sources seem to
     43# expect them to and mingw import libs seem to use them, but
     44# it's not clear whether or not native win64 libraries use this
     45# convention (and I'm not sure whether the Cygwin-hosted win64
     46# toolchain behaves the same was as when hosted on Linux ...
     47# The compiler default seems to be to use them; if we want to
     48# suppress their use, uncomment the following:
     49
     50SUPPRESS_UNDERSCORES=#-fno-leading-underscore
    4151
    4252.s.o:
    4353        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
    4454.c.o:
    45         $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -fno-leading-underscore -m64 -o $@
     55        $(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) ${SUPPRESS_UNDERSCORES} -m64 -o $@
    4656
    4757SPOBJ = pad.o x86-spjump64.o x86-spentry64.o x86-subprims64.o
Note: See TracChangeset for help on using the changeset viewer.