openap-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openap-cvs] : wl11000/scripts mklibs,1.3,1.4


From: David Kimdon <address@hidden>
Subject: [openap-cvs] : wl11000/scripts mklibs,1.3,1.4
Date: Wed, 17 Jul 2002 16:35:38 -0400

Update of /cvsroot/openap/wl11000/scripts
In directory subversions:/tmp/cvs-serv15091/scripts

Modified Files:
        mklibs 
Log Message:
rearrange many things so we can more easily target different boards
fixup to mklibs to old python.


Index: mklibs
===================================================================
RCS file: /cvsroot/openap/wl11000/scripts/mklibs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mklibs      15 Jul 2002 20:36:17 -0000      1.3
+++ mklibs      17 Jul 2002 20:35:35 -0000      1.4
@@ -214,6 +214,7 @@
 lib_path = []
 dest_path = "DEST"
 ldlib = "LDLIB"
+default_lib_path = "yes"
 libc_extras_dir = "/usr/lib/libc_pic"
 target = ""
 so_pattern = re.compile("(.*)\.so(\.\d+)*")
@@ -222,17 +223,19 @@
 for opt, arg in optlist:
     if opt in ("-v", "--verbose"):
         if debuglevel < DEBUG_SPAM:
-            debuglevel += 1
+            debuglevel = debuglevel + 1
     elif opt == "-L":
         lib_path.extend(string.split(arg, ":"))
     elif opt in ("-d", "--dest-dir"):
         dest_path = arg
+    elif opt in ("-D", "--no-default-lib"):
+        default_lib_path = "no"
     elif opt == "--ldlib":
         ldlib = arg
     elif opt == "--libc-extras-dir":
         libc_extras_dir = arg
     elif opt == "--target":
-        target = arg
+        target = arg + "-"
     elif opt == "--help":
         print "Usage: mklibs [OPTION]... -d DEST FILE ..."
         print "Make a set of minimal libraries for FILE(s) in DEST."
@@ -247,6 +250,9 @@
     else:
         print "WARNING: unknown option: " + opt + "\targ: " + arg
 
+
+if default_lib_path == "yes":
+    lib_path.extend(["/lib/", "/usr/lib/", "/usr/X11R6/lib/"])
 
 if ldlib == "LDLIB":
     ldlib = os.getenv("ldlib")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]