Skip to content
Snippets Groups Projects
Commit f7e4298a authored by deuce's avatar deuce
Browse files

Use the same workaround that Mk/bsd.gecko.mk uses by diddling with the

generated config files rather than patching the sources.

(As a side note, there is an Mk/bsd.gecko.mk!)
parent a5b85531
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ $(JSLIB_BUILD): $(3RDP_ROOT)$(DIRSEP)dist/libmozjs.tgz | $(JS_SRC) $(JS_IDIR)
@echo Creating $@ ...
$(QUIET)-rm -rf $(JS_SRC)/*
$(QUIET)tar -xzC $(JS_SRC) -f $(3RDPDISTDIR)$(DIRSEP)libmozjs.tgz
$(QUIET)patch -d $(JS_SRC) < jsnativestack.cpp.patch
$(QUIET)echo "pthread_np.h" >> $(JS_SRC)$(DIRSEP)js-1.8.5$(DIRSEP)js$(DIRSEP)src$(DIRSEP)config$(DIRSEP)system-headers
-$(QUIET)cd $(JS_SRC)$(DIRSEP)js-1.8.5$(DIRSEP)js$(DIRSEP)src && autoconf-2.13
$(QUIET)cd $(JS_SRC)$(DIRSEP)js-1.8.5$(DIRSEP)js$(DIRSEP)src && ./configure $(JS_CONFIGURE_ARGS)
$(QUIET)$(MAKE) -C $(JS_SRC)$(DIRSEP)js-1.8.5$(DIRSEP)js$(DIRSEP)src
......
--- js-1.8.5/js/src/jsnativestack.cpp.orig 2011-11-01 00:58:59.000000000 -0700
+++ js-1.8.5/js/src/jsnativestack.cpp 2011-11-01 01:02:48.000000000 -0700
@@ -48,11 +48,13 @@
# include <os2.h>
#elif defined(XP_MACOSX) || defined(DARWIN) || defined(XP_UNIX)
+# pragma GCC visibility push(default)
# include <pthread.h>
# if defined(__FreeBSD__)
# include <pthread_np.h>
# endif
+# pragma GCC visibility pop
#else
# error "Unsupported platform"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment