- Do not suppress -Wall from default CFLAGS, it is always good to see if the
code needs some attention, and move macro definition behind other flags - Fix the build against the LLD linker on i386 when using optimized assembly routines by allowing relocations in read-only segments (normally, Quake II builds its shared libraries with -fPIC and they link fine except these few files written in assembly) PR: 234866 Submitted by: emaste
This commit is contained in:
parent
e9d578d264
commit
f76b56c6e2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499072
2 changed files with 5 additions and 1 deletions
|
@ -205,6 +205,10 @@ post-patch: .SILENT
|
|||
${REINPLACE_CMD} -e '/BUILDSTRING/s|Linux|${OPSYS}|' \
|
||||
-e '/CPUSTRING/s|Unknown|${ARCH}|' \
|
||||
${WRKSRC}/src/qcommon/qcommon.h
|
||||
.if ${PORT_OPTIONS:MASM}
|
||||
${REINPLACE_CMD} -e '/^SHLIBLDFLAGS/s|$$| -Wl,-z,notext|' \
|
||||
${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
.for tgt in ${EXE_TARGETS}
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
NULL_DIR=$(MOUNT_DIR)/null
|
||||
|
||||
-BASE_CFLAGS=-Wall -pipe -Dstricmp=strcasecmp
|
||||
+BASE_CFLAGS=-pipe -Dstricmp=strcasecmp $(CFLAGS)
|
||||
+BASE_CFLAGS=-Wall $(CFLAGS) -Dstricmp=strcasecmp
|
||||
ifeq ($(HAVE_IPV6),YES)
|
||||
BASE_CFLAGS+= -DHAVE_IPV6
|
||||
ifeq ($(OSTYPE),FreeBSD)
|
||||
|
|
Loading…
Reference in a new issue