Work around the fact that emacs undump knows too much about the layout
of elf files (or thinks it does). These assumptions were just broken by binutils/ld changes to put GOT and PLT into their own PT_LOAD sections. Thus BSS is no longer part of the DATA PT_LOAD section. This is a workaround using the '-Z' compatibility flag which disables the GOT/PLT padding.
This commit is contained in:
parent
f5ecdc2e7a
commit
d75ddb5679
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.9 2002/12/09 15:37:23 brad Exp $
|
# $OpenBSD: Makefile,v 1.10 2003/01/17 21:04:41 drahn Exp $
|
||||||
# Original from A B <obsdfaq30@yahoo.com>
|
# Original from A B <obsdfaq30@yahoo.com>
|
||||||
|
|
||||||
COMMENT= "GNU editor: extensible, customizable, self documenting"
|
COMMENT= "GNU editor: extensible, customizable, self documenting"
|
||||||
@ -17,12 +17,20 @@ PERMIT_DISTFILES_FTP= Yes
|
|||||||
|
|
||||||
SUBST_VARS= GCCARCH VERSION
|
SUBST_VARS= GCCARCH VERSION
|
||||||
|
|
||||||
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
USE_GMAKE= Yes
|
USE_GMAKE= Yes
|
||||||
CONFIGURE_STYLE= gnu dest
|
CONFIGURE_STYLE= gnu dest
|
||||||
CONFIGURE_ARGS+= ${GCCARCH}
|
CONFIGURE_ARGS+= ${GCCARCH}
|
||||||
|
.if (${ELF_TOOLCHAIN} == "yes")
|
||||||
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
||||||
|
-I${LOCALBASE}/include/libpng" \
|
||||||
|
LDFLAGS="-Z -L${LOCALBASE}/lib"
|
||||||
|
.else
|
||||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
||||||
-I${LOCALBASE}/include/libpng" \
|
-I${LOCALBASE}/include/libpng" \
|
||||||
LDFLAGS="-L${LOCALBASE}/lib"
|
LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
.endif
|
||||||
|
|
||||||
# X11 flavors
|
# X11 flavors
|
||||||
FLAVORS= no_x11 no_tiff no_png no_jpeg
|
FLAVORS= no_x11 no_tiff no_png no_jpeg
|
||||||
|
Loading…
Reference in New Issue
Block a user