Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/lvm2/lib/libdevmapper Hack for powerpc64



details:   https://anonhg.NetBSD.org/src/rev/23211250c3dd
branches:  trunk
changeset: 348091:23211250c3dd
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 04 14:33:16 2016 +0000

description:
Hack for powerpc64

diffstat:

 external/gpl2/lvm2/lib/libdevmapper/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f274ad61f542 -r 23211250c3dd external/gpl2/lvm2/lib/libdevmapper/Makefile
--- a/external/gpl2/lvm2/lib/libdevmapper/Makefile      Tue Oct 04 14:25:02 2016 +0000
+++ b/external/gpl2/lvm2/lib/libdevmapper/Makefile      Tue Oct 04 14:33:16 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2013/09/11 23:04:10 joerg Exp $
+#      $NetBSD: Makefile,v 1.10 2016/10/04 14:33:16 christos Exp $
 
 USE_SHLIBDIR=  yes
 USE_FORT?=     no
@@ -35,6 +35,11 @@
 DBG=            -g
 .endif
 
+# call to `dm_lib_release' lacks nop, can't restore toc; recompile with -fPIC
+.if ${MACHINE_ARCH} == "powerpc64"
+COPTS.libdm-nbsd-iface.c+= -O0
+.endif
+
 .PATH: ${LIBDEVMAPPER_DISTDIR}/
 .PATH: ${LIBDEVMAPPER_DISTDIR}/datastruct
 .PATH: ${LIBDEVMAPPER_DISTDIR}/mm



Home | Main Index | Thread Index | Old Index