Browse Source

fix musl compile, from sab0tage

Waldemar Brodkorb 10 years ago
parent
commit
24bcf9338f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      package/screen/Makefile

+ 8 - 0
package/screen/Makefile

@@ -21,6 +21,14 @@ $(eval $(call PKG_template,SCREEN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PK
 CONFIGURE_ENV+=		$(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
 CONFIGURE_ARGS+=	--with-sys-screenrc=/etc/screenrc
 
+pre-build:
+	echo '#undef UTMPOK' >> ${WRKBUILD}/config.h
+	echo '#undef LOGINDEFAULT' >> ${WRKBUILD}/config.h
+	echo '#define LOGINDEFAULT 0' >> ${WRKBUILD}/config.h
+	echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
+	echo '#undef UTHOST' >> ${WRKBUILD}/config.h
+	echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
+
 post-install:
 	${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
 	${INSTALL_BIN} ${WRKINST}/usr/bin/screen ${IDIR_SCREEN}/usr/bin/