- 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:
Alexey Dokuchaev 2019-04-16 03:58:59 +00:00
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

View file

@ -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}

View file

@ -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)