diff options
author | obrien <obrien@FreeBSD.org> | 2004-08-27 23:44:04 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-08-27 23:44:04 +0800 |
commit | 336a349d1e37185f1d2c825aa97c2f1d5686825e (patch) | |
tree | adfe26af174e5228ba993cd992bec89c1ba09fc8 | |
parent | 0258dd299745438f7d69720e8ecc18b0dcab78f5 (diff) | |
download | freebsd-ports-gnome-336a349d1e37185f1d2c825aa97c2f1d5686825e.tar.gz freebsd-ports-gnome-336a349d1e37185f1d2c825aa97c2f1d5686825e.tar.zst freebsd-ports-gnome-336a349d1e37185f1d2c825aa97c2f1d5686825e.zip |
Support building/use on FreeBSD 4.x.
PR: 71011
Submitted by: Douglas Thrift <douglas@douglasthrift.net>
-rw-r--r-- | devel/gdb6/Makefile | 4 | ||||
-rw-r--r-- | devel/gdb6/files/kvm-fbsd-alpha.h | 2 | ||||
-rw-r--r-- | devel/gdb6/files/kvm-fbsd-i386.h | 2 | ||||
-rw-r--r-- | devel/gdb66/Makefile | 4 | ||||
-rw-r--r-- | devel/gdb66/files/kvm-fbsd-alpha.h | 2 | ||||
-rw-r--r-- | devel/gdb66/files/kvm-fbsd-i386.h | 2 |
6 files changed, 14 insertions, 2 deletions
diff --git a/devel/gdb6/Makefile b/devel/gdb6/Makefile index 99f63b23a171..b555d0429bd9 100644 --- a/devel/gdb6/Makefile +++ b/devel/gdb6/Makefile @@ -35,7 +35,9 @@ CFLAGS+= -DRL_NO_COMPAT -DKGDB .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on 4.x" +USE_GCC?= 3.4 +LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline +CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib .endif .if ${ARCH} == "amd64" diff --git a/devel/gdb6/files/kvm-fbsd-alpha.h b/devel/gdb6/files/kvm-fbsd-alpha.h index 0ea5988bf058..4918912b6752 100644 --- a/devel/gdb6/files/kvm-fbsd-alpha.h +++ b/devel/gdb6/files/kvm-fbsd-alpha.h @@ -51,6 +51,7 @@ fetch_kcore_registers (struct pcb *pcbp) } +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -77,3 +78,4 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) return (this_saved_pc); } } +#endif // __FreeBSD_version >= 500032 diff --git a/devel/gdb6/files/kvm-fbsd-i386.h b/devel/gdb6/files/kvm-fbsd-i386.h index 0f9ba75a311a..e85fb1c695e2 100644 --- a/devel/gdb6/files/kvm-fbsd-i386.h +++ b/devel/gdb6/files/kvm-fbsd-i386.h @@ -56,6 +56,7 @@ ksym_maxuseraddr (void) but we don't think that's too important right now. */ enum frametype { tf_normal, tf_trap, tf_interrupt, tf_syscall }; +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -99,6 +100,7 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) #undef oEIP } } +#endif // __FreeBSD_version >= 500032 static void fetch_kcore_registers (struct pcb *pcb) diff --git a/devel/gdb66/Makefile b/devel/gdb66/Makefile index 99f63b23a171..b555d0429bd9 100644 --- a/devel/gdb66/Makefile +++ b/devel/gdb66/Makefile @@ -35,7 +35,9 @@ CFLAGS+= -DRL_NO_COMPAT -DKGDB .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on 4.x" +USE_GCC?= 3.4 +LIB_DEPENDS= readline.4:${PORTSDIR}/devel/readline +CFLAGS+= -Wl,--rpath -Wl,${PREFIX}/lib .endif .if ${ARCH} == "amd64" diff --git a/devel/gdb66/files/kvm-fbsd-alpha.h b/devel/gdb66/files/kvm-fbsd-alpha.h index 0ea5988bf058..4918912b6752 100644 --- a/devel/gdb66/files/kvm-fbsd-alpha.h +++ b/devel/gdb66/files/kvm-fbsd-alpha.h @@ -51,6 +51,7 @@ fetch_kcore_registers (struct pcb *pcbp) } +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -77,3 +78,4 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) return (this_saved_pc); } } +#endif // __FreeBSD_version >= 500032 diff --git a/devel/gdb66/files/kvm-fbsd-i386.h b/devel/gdb66/files/kvm-fbsd-i386.h index 0f9ba75a311a..e85fb1c695e2 100644 --- a/devel/gdb66/files/kvm-fbsd-i386.h +++ b/devel/gdb66/files/kvm-fbsd-i386.h @@ -56,6 +56,7 @@ ksym_maxuseraddr (void) but we don't think that's too important right now. */ enum frametype { tf_normal, tf_trap, tf_interrupt, tf_syscall }; +#if __FreeBSD_version >= 500032 CORE_ADDR fbsd_kern_frame_saved_pc (struct frame_info *fi) { @@ -99,6 +100,7 @@ fbsd_kern_frame_saved_pc (struct frame_info *fi) #undef oEIP } } +#endif // __FreeBSD_version >= 500032 static void fetch_kcore_registers (struct pcb *pcb) |