RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 05-Jul-2017 20:11:06 Branch: rpm-5_4 Handle: 2017070518110600 Modified files: (Branch: rpm-5_4) rpm/js Makefile.am extract.sh Log: - mozjs: build library and add additional configuration. Summary: Revision Changes Path 1.44.2.8 +2 -2 rpm/js/Makefile.am 1.1.2.2 +40 -3 rpm/js/extract.sh ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/js/Makefile.am ============================================================================ $ cvs diff -u -r1.44.2.7 -r1.44.2.8 Makefile.am --- rpm/js/Makefile.am 5 Jul 2017 15:34:28 -0000 1.44.2.7 +++ rpm/js/Makefile.am 5 Jul 2017 18:11:06 -0000 1.44.2.8 @@ -107,11 +107,11 @@ extract: mozilla-release @echo "-- $@ --" - @sh ./extract.sh + @CPPFLAGS="-fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks" sh -e ./extract.sh platform: extract @echo "-- $@ --" - @sh ./gen-config.sh `uname -m` linux + @sh -e ./gen-config.sh `uname -m` linux clean-local: rm -rf platform extract include mozilla-release @@ . patch -p0 <<'@@ .' Index: rpm/js/extract.sh ============================================================================ $ cvs diff -u -r1.1.2.1 -r1.1.2.2 extract.sh --- rpm/js/extract.sh 5 Jul 2017 15:34:28 -0000 1.1.2.1 +++ rpm/js/extract.sh 5 Jul 2017 18:11:06 -0000 1.1.2.2 @@ -23,14 +23,51 @@ cd mozilla-release/js/src -# skipping icu and relying on posix nspr emulation all helps. After that we # only need js/src, js/public and mfbt. Well, we also need 8 of the icu # headers, but only to stub out functions that fail at runtime -PYTHON=python ./configure --without-intl-api --enable-posix-nspr-emulation +#PYTHON=python ./configure --without-intl-api --enable-posix-nspr-emulation +PYTHON=python ./configure \ + --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu \ + --program-prefix= \ + --disable-dependency-tracking \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --libdir=/usr/lib64 \ + --libexecdir=/usr/libexec \ + --localstatedir=/var \ + --sharedstatedir=/var/lib \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-optimize \ + --enable-pie \ + --enable-posix-nspr-emulation \ + --enable-readline \ + --enable-release \ + --enable-shared-js \ + --enable-system-ffi \ + --enable-xterm-updates \ + --with-pthreads \ + --with-system-icu \ + --with-system-zlib \ + --with-intl-api \ + --enable-gczeal \ + --enable-more-deterministic +# --enable-ctypes +# --enable-gc-trace +# --enable-jitspew + +echo "CPPSRCS += \$(DEPTH)/mfbt/Unified_cpp_mfbt0.cpp \$(DEPTH)/../../mfbt/Compression.cpp \$(DEPTH)/../../mfbt/decimal/Decimal.cpp" >> js/src/backend.mk +#echo "STATIC_LIBS += \$(DEPTH)/mfbt/libmfbt.a" >> js/src/backend.mk +# skipping icu and relying on posix nspr emulation all helps. After that we # we have to run make to generate a byte code version of the self hosted js and # a switch table -make -j4 +make -j8 cd ../../.. @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org