Selaa lähdekoodia

more tries to get it running

Ralf S. Engelschall 23 vuotta sitten
vanhempi
commit
0366ba3974
2 muutettua tiedostoa jossa 13 lisäystä ja 7 poistoa
  1. 3 0
      mozilla/mozilla.sh
  2. 10 7
      mozilla/mozilla.spec

+ 3 - 0
mozilla/mozilla.sh

@@ -0,0 +1,3 @@
+#!/bin/sh
+cd @l_prefix@/lib/mozilla
+exec ./mozilla ${1+"$@"}

+ 10 - 7
mozilla/mozilla.spec

@@ -60,8 +60,8 @@ AutoReqProv:  no
 %build
     CC="%{l_cc}" \
     CXX="%{l_cxx}" \
-    CFLAGS="%{l_cflags -O} %{l_cppflags}" \
-    CXXFLAGS="%{l_cflags -O} -Wno-deprecated %{l_cppflags}" \
+    CFLAGS="%{l_cflags} %{l_cppflags}" \
+    CXXFLAGS="%{l_cflags} -Wno-deprecated %{l_cppflags}" \
     CPPFLAGS="%{l_cppflags}" \
     LDFLAGS="%{l_ldflags}" \
     GLIB_CONFIG="%{l_prefix}/bin/glib-config" \
@@ -85,7 +85,6 @@ AutoReqProv:  no
         --enable-jsd \
         --enable-crypto \
         --enable-xinerama \
-        --enable-strip \
         --enable-chrome-format=jar \
         --enable-static \
         --disable-shared \
@@ -95,7 +94,6 @@ AutoReqProv:  no
         --disable-ldap \
         --disable-freetype2 \
         --disable-accessibility \
-        --disable-tests \
         --disable-debug \
         --disable-dtd-debug \
         --disable-pedantic \
@@ -106,14 +104,19 @@ AutoReqProv:  no
         --disable-optimize \
         --disable-xterm-updates \
         --with-pthreads
+        #FIXME# --enable-strip
+        #FIXME# --disable-tests
     %{l_make} %{l_mflags}
     ( cd dist/bin
       LD_LIBRARY_PATH=.; export LD_LIBRARY_PATH
       MOZILLA_FIVE_HOME=.; export MOZILLA_FIVE_HOME
-      ./regxpcom
-      ./regchrome
+      ./regxpcom || true
+      ./regchrome || true
       touch chrome/user-skins.rdf chrome/user-locales.rdf
-      find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
+      #FIXME# find . -type d -depth -print | xargs rmdir >/dev/null 2>&1 || true
+      %{l_shtool} subst \
+          -e "s;`pwd`;%{l_prefix}/lib/mozilla;" \
+          components/xpti.dat components/compreg.dat
     )
 
 %install