瀏覽代碼

build on Irix

David Rose 21 年之前
父節點
當前提交
d636bc832f
共有 2 個文件被更改,包括 9 次插入3 次删除
  1. 6 1
      dtool/Config.pp
  2. 3 2
      dtool/src/prc/configPageManager.cxx

+ 6 - 1
dtool/Config.pp

@@ -773,6 +773,11 @@
 // if ranlib is not necessary on your platform.
 #defer RANLIB ranlib $[target]
 
+// Where to put the so_locations file, used by an Irix MIPSPro
+// compiler, to generate a map of shared library memory locations.
+#defer SO_LOCATIONS $[DTOOL_INSTALL]/etc/so_locations
+
+
 // How to generate a shared C or C++ library.  $[source] and $[target]
 // as above, and $[libs] is a space-separated list of dependent
 // libraries, and $[lpath] is a space-separated list of directories in
@@ -833,7 +838,7 @@
   #defer STATIC_LIB_C++ $[CXX] -ar -o $[target] $[sources]
   #defer RANLIB
 
-  #define SHARED_FLAGS -Wl,-none -Wl,-update_registry,$[TOPDIR]/so_locations
+  #defer SHARED_FLAGS -Wl,-none -Wl,-update_registry,$[SO_LOCATIONS]
   #defer SHARED_LIB_C $[cc_ld] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
   #defer SHARED_LIB_C++ $[cxx_ld] -shared $[SHARED_FLAGS] -o $[target] $[sources] $[lpath:%=-L%] $[libs:%=-l%]
 #endif

+ 3 - 2
dtool/src/prc/configPageManager.cxx

@@ -205,7 +205,8 @@ reload_implicit_pages() {
         vector_string::reverse_iterator fi;
         for (fi = files.rbegin(); fi != files.rend(); ++fi) {
           int file_flags = 0;
-          for (Globs::const_iterator gi = _prc_patterns.begin();
+          Globs::const_iterator gi;
+          for (gi = _prc_patterns.begin();
                gi != _prc_patterns.end();
                ++gi) {
             if ((*gi).matches(*fi)) {
@@ -213,7 +214,7 @@ reload_implicit_pages() {
               break;
             }
           }
-          for (Globs::const_iterator gi = _prc_executable_patterns.begin();
+          for (gi = _prc_executable_patterns.begin();
                gi != _prc_executable_patterns.end();
                ++gi) {
             if ((*gi).matches(*fi)) {