summaryrefslogtreecommitdiff
path: root/devel/SOPE5/patches/patch-general.make
blob: ab6f305d774bb4ed1759f914b2334bed809f43fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-general.make,v 1.2 2022/01/26 16:41:45 tm Exp $

Don't include command line in output.
Add missing linker flag objc in general.make because env or pkgsrc
LDFLAGS are not working.

--- general.make.orig	Tue Jan 18 16:17:06 2022
+++ general.make	Wed Jan 26 16:19:05 2022
@@ -23,5 +23,8 @@
 # information plus the compiler flags used; that can
 # be afterwards read with:
 # readelf -p .GCC.command.line /path/to/elf_file
-ADDITIONAL_OBJCFLAGS += -g $(call cc-option,-frecord-gcc-switches)
-
+ADDITIONAL_OBJCFLAGS += -g
+# Ensure linking to objc works correctly. Because the
+# env or pkgsrc variable LDFLAGS isn't working it's
+# required configure it here:
+ADDITIONAL_LDFLAGS += -lobjc