pkgsrc/sysutils/dptutil/patches/patch-ag
dholland aa5981f9d4 Fix assorted build problems. Should close PR 42081. While here, add at
least minimal comments to all patches and tidy up some (but by no
means all) pkglint.

I have no idea if this works. It spews warnings about "packed", which
lead me to suspect it may not run correctly, but I don't have the
facilities to test it. It does, however, now build ok on LP64 and if
someone can test it may be reasonable to remove the restriction on that.
2011-05-22 19:11:42 +00:00

30 lines
925 B
Text

$NetBSD: patch-ag,v 1.2 2011/05/22 19:11:42 dholland Exp $
diff -ur dptutil/makefile dptutil/makefile
--- odptutil/makefile Fri Aug 30 19:50:02 2002
+++ dptutil/makefile Fri Dec 6 09:05:21 2002
@@ -11,11 +11,13 @@
DEBUG_FLAGS=-DDEBUG_ENTER_EXIT
DEBUG_FLAGS=
-CFLAGS= -O3 -c $(I) -DMESSAGES \
+CFLAGS= -O2 -c $(I) -DMESSAGES \
$(extra_cflags) -D_DPT_ACTIVE_ALIGNMENT $(DEBUG_FLAGS) \
-Dtrue=1 -Dfalse=0 \
-DHORIZONTAL -DNEW_RSC_MGR -DNEW_RSC_HDR \
- -D_DPT_FLASH
+ -DDEFAULT_PATH=\"${PREFIX}/sbin\" \
+ -D_NBSD_LIBEXEC=\"${PREFIX}/sbin\" \
+ -D_DPT_FLASH -D_DPT_FREE_BSD -Dunix -D__unix__
LINK_FLAGS = -v
@@ -140,7 +142,7 @@
$(LINK) $(LINK_FLAGS) -o $@ $(OBJS) $(LIBS)
depend :
- makedepend -DFLG_STAT_LAP=0x20 -D_DPT_UNIX -D_DPT_LINUX -D__linux__ -- ${CFLAGS} -- ${SRCS}
+ makedepend -DFLG_STAT_LAP=0x20 -D_DPT_UNIX -D_DPT_FREE_BSD -- ${CFLAGS} -- ${SRCS}
$(CPP_EXTENSION).o:
$(CC) $(CFLAGS) -c $<