Patchwork [git,commit] screen: fix build when libelf is enabled

login
register
mail settings
Submitter Peter Korsgaard
Date April 15, 2012, 12:02 p.m.
Message ID <20120415120358.5291196AC0@busybox.osuosl.org>
Download mbox | patch
Permalink /patch/152596/
State Not Applicable
Headers show

Comments

Peter Korsgaard - April 15, 2012, 12:02 p.m.
commit: http://git.buildroot.net/buildroot/commit/?id=5fadbb58abb54f816f13367c9af4323136f4cf49
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

screen's configure script thinks it is running on a SVR4 system when it
detects libelf, breaking the build.

At the same time cleanup the package somewhat, and ensure the correct
CFLAGS are used.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/screen/screen.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/package/screen/screen.mk b/package/screen/screen.mk
index 2dfb8f2..4b3d427 100644
--- a/package/screen/screen.mk
+++ b/package/screen/screen.mk
@@ -7,8 +7,8 @@ 
 SCREEN_VERSION = 4.0.3
 SCREEN_SITE = $(BR2_GNU_MIRROR)/screen
 SCREEN_DEPENDENCIES = ncurses
-SCREEN_CONF_ENV = CFLAGS=-DSYSV=1
-SCREEN_MAKE_OPT = -j1
+SCREEN_CONF_ENV = ac_cv_header_elf_h=no ac_cv_header_dwarf_h=no
+SCREEN_MAKE = $(MAKE1)
 SCREEN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin
 
 $(eval $(call AUTOTARGETS))