summaryrefslogtreecommitdiff
path: root/debian/patches/common-objects.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/common-objects.patch')
-rw-r--r--debian/patches/common-objects.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/common-objects.patch b/debian/patches/common-objects.patch
new file mode 100644
index 0000000..0b785cf
--- /dev/null
+++ b/debian/patches/common-objects.patch
@@ -0,0 +1,16 @@
+Description: Avoid defining objects twice
+Author: Stephen Kitt <skitt@debian.org>
+
+This allows building with -fno-common (the GCC 10 default).
+
+--- a/texmap/ntmap.c
++++ b/texmap/ntmap.c
+@@ -55,7 +55,7 @@
+ int Lighting_on=1; // initialize to no lighting
+ int Tmap_flat_flag = 0; // 1 = render texture maps as flat shaded polygons.
+ int Current_seg_depth; // HACK INTERFACE: how far away the current segment (& thus texture) is
+-int Max_perspective_depth;
++extern int Max_perspective_depth;
+ int Max_flat_depth;
+
+ // These variables are the interface to assembler. They get set for each texture map, which is a real waste of time.
bgstack15