summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-04-29 21:01:23 +0000
committerAlyssa Ross <hi@alyssa.is>2021-05-09 18:56:20 +0000
commit4a8dbecd16caabba7d057787d9d70aab78732f2b (patch)
treec5f895a06ad78a72ea8c8af0fac85f49d9cea232 /pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch
parent77b148ddd7b487aba2fbfa53e2018b288aac3124 (diff)
downloadnixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar.gz
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar.bz2
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar.lz
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar.xz
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.tar.zst
nixpkgs-4a8dbecd16caabba7d057787d9d70aab78732f2b.zip
netbsd: 8.0 -> 9.1
Notes:

- compat: Needs a header from common merged with it's wrapper.

- librt: Needs the jemalloc sources.

- libc: install libc_pic.a

  This was the behaviour on NetBSD 8.0, and ld.elf_so (in its current
  configuration) requires it.  We could also have disabled PIC in
  ld.elf_so.

- sys: fix build

  We use a more recent version of binutils than NetBSD 9.1 does, so we
  need to backport a patch from CURRENT.

Co-authored-by: John Ericson <John.Ericson@Obsidian.Systems>
Diffstat (limited to 'pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch')
-rw-r--r--pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch b/pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch
new file mode 100644
index 00000000000..5a2b9092a5c
--- /dev/null
+++ b/pkgs/os-specific/bsd/netbsd/no-dynamic-linker.patch
@@ -0,0 +1,16 @@
+===================================================================
+RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/stand/efiboot/Makefile.efiboot,v
+rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/i386/stand/efiboot/Makefile.efiboot,v: warning: Unknown phrases like `commitid ...;' are present.
+retrieving revision 1.16
+retrieving revision 1.17
+diff -u -p -r1.16 -r1.17
+--- sys/arch/i386/stand/efiboot/Makefile.efiboot	2019/09/13 02:19:45	1.16
++++ sys/arch/i386/stand/efiboot/Makefile.efiboot	2020/04/04 15:30:46	1.17
+@@ -41,6 +41,7 @@ BINMODE=444
+ .PATH:	${.CURDIR}/../../libsa
+ 
+ LDSCRIPT?= ${.CURDIR}/ldscript
++LDFLAGS+= --no-dynamic-linker --noinhibit-exec
+ LDFLAGS+= -nostdlib -T${LDSCRIPT} -Bsymbolic -shared -nocombreloc
+ CPPFLAGS+= -I$S -I${.CURDIR} -I${.CURDIR}/.. -I$S/lib/libsa
+ CPPFLAGS+= -I${.OBJDIR}