1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

madedit makes use of hidden symbol feature of gcc while our system header

don't like it.  The recent addition of hidden symbol feature have exposed
this issue.

This is a minimal set of change that makes it work.

Pointed out by:	tinderbox via miwi and pav
This commit is contained in:
Xin LI 2011-03-23 00:04:29 +00:00
parent a07f67efe0
commit be73385ad8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271509
3 changed files with 35 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= madedit
PORTVERSION= 0.2.9
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= editors
MASTER_SITES= SF/${PORTNAME}/MadEdit/MadEdit-${PORTVERSION}
@ -18,6 +18,7 @@ USE_GETTEXT= yes
USE_WX= 2.6+
WANT_UNICODE= yes
MAKE_JOBS_SAFE= yes
USE_DOS2UNIX= yes
LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost-libs

View File

@ -0,0 +1,21 @@
--- ./charset-detector/src/entry/impl.cpp.orig 2011-03-22 16:53:02.918217862 -0700
+++ ./charset-detector/src/entry/impl.cpp 2011-03-22 16:53:47.868220433 -0700
@@ -41,8 +41,10 @@
#include "chardetect.h"
#include "nscore.h"
#include "nsUniversalDetector.h"
+#pragma GCC visibility push(default)
#include <string.h>
#include <stdlib.h>
+#pragma GCC visibility pop
#ifdef _WIN32
# include <windows.h>
@@ -53,7 +55,6 @@
#pragma managed(push, off)
#endif
-
class DllDetector : public nsUniversalDetector
{
protected:

View File

@ -0,0 +1,12 @@
--- ./charset-detector/src/prmem.h.orig 2011-03-22 16:53:02.938216470 -0700
+++ ./charset-detector/src/prmem.h 2011-03-22 16:53:03.708221682 -0700
@@ -37,7 +37,9 @@
#ifndef nsDummyPrmem_h__
#define nsDummyPrmem_h__
+#pragma GCC visibility push(default)
#include <stdlib.h>
+#pragma GCC visibility pop
inline void* PR_Malloc(size_t len)
{