- Fix "No suitable display found, exiting" problem

- Add dependecy on GCC34

PR:		124094
Submitted by:	Jan Henrik Sylvester <me@janh.de>
This commit is contained in:
Pietro Cerutti 2008-07-09 00:07:41 +00:00
parent 7fea3f9982
commit b092ac8f7f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216574
2 changed files with 24 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= qemacs
PORTVERSION= 0.3.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= editors
MASTER_SITES= http://fabrice.bellard.free.fr/qemacs/
@ -18,6 +18,7 @@ USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix="${PREFIX}" --make="${GMAKE}" --cc="${CC}" \
--extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}"
USE_GCC= 3.4
DATADIR= ${PREFIX}/share/qe

View file

@ -0,0 +1,22 @@
--- qe.h.orig 2003-04-22 00:01:42.000000000 +0200
+++ qe.h 2005-06-07 16:02:27.000000000 +0200
@@ -576,10 +576,18 @@
/* make sure that the keyword is not disabled by glibc (TINYC case) */
#undef __attribute__
-
+#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
/* same method as the linux kernel... */
#define __init_call __attribute__ ((unused,__section__ (".initcall.init")))
#define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit")))
+#else
+#undef __attribute_used__
+#define __attribute_used__ __attribute__((__used__))
+#define __init_call __attribute_used__ __attribute__((__section__ (".initcall.init")))
+#define __exit_call __attribute_used__ __attribute__((__section__ (".exitcall.exit")))
+
+#endif
+
#define qe_module_init(fn) \
static int (*__initcall_##fn)(void) __init_call = fn