1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Support ELF.

1.  Invoke prefixing of external symbols in assembly code functions via
    __ELF__.
This commit is contained in:
Scott Mace 1998-09-22 16:11:07 +00:00
parent b3fa9834df
commit bdc165e0ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13313

View File

@ -0,0 +1,31 @@
--- unix/Makefile.orig Fri Oct 24 13:38:04 1997
+++ unix/Makefile Thu Sep 17 22:25:33 1998
@@ -44,6 +44,12 @@
LFLAGS1 =
LFLAGS2 = -s
+.if ${PORTOBJFORMAT} == elf
+ELFDEF = -D__ELF__
+.else
+ELFDEF =
+.endif
+
# object file lists
OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o crypt.o ttyio.o \
unix.o crc32.o crctab.o
@@ -81,13 +87,13 @@
zipup.o: unix/zipup.h
match.o: match.S
- $(CPP) match.S > _match.s
+ $(CPP) $(ELFDEF) match.S > _match.s
$(AS) _match.s
mv _match.o match.o
rm -f _match.s
crc_i386.o: crc_i386.S
- $(CPP) crc_i386.S > crc_i386.s
+ $(CPP) $(ELFDEF) crc_i386.S > crc_i386.s
$(AS) crc_i386.s
rm -f crc_i386.s