summaryrefslogtreecommitdiffstats
path: root/source/n/tftp-hpa
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/tftp-hpa')
-rwxr-xr-xsource/n/tftp-hpa/tftp-hpa.SlackBuild5
-rw-r--r--source/n/tftp-hpa/tftp-hpa.fcommon.diff11
2 files changed, 15 insertions, 1 deletions
diff --git a/source/n/tftp-hpa/tftp-hpa.SlackBuild b/source/n/tftp-hpa/tftp-hpa.SlackBuild
index 86e362d00..fda5eb291 100755
--- a/source/n/tftp-hpa/tftp-hpa.SlackBuild
+++ b/source/n/tftp-hpa/tftp-hpa.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2013, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2013, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -64,6 +64,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# Add -fcommon to CFLAGS:
+zcat $CWD/tftp-hpa.fcommon.diff.gz | patch -p1 --verbose || exit 1
+
./configure --prefix=/usr
make $NUMJOBS || make || exit 1
diff --git a/source/n/tftp-hpa/tftp-hpa.fcommon.diff b/source/n/tftp-hpa/tftp-hpa.fcommon.diff
new file mode 100644
index 000000000..90250235a
--- /dev/null
+++ b/source/n/tftp-hpa/tftp-hpa.fcommon.diff
@@ -0,0 +1,11 @@
+--- ./MCONFIG.in.orig 2011-12-11 16:13:52.000000000 -0600
++++ ./MCONFIG.in 2021-01-16 12:55:22.406108324 -0600
+@@ -51,7 +51,7 @@
+
+ # Compiler and compiler flags
+ CC = @CC@
+-CFLAGS = @CFLAGS@ -I$(SRCROOT)
++CFLAGS = @CFLAGS@ -I$(SRCROOT) -fcommon
+
+ # Link flags
+ LDFLAGS = @LDFLAGS@