Author: zhuqing
Date: 2011-04-20 04:06:42 -0400 (Wed, 20 Apr 2011)
New Revision: 3560
Modified:
trunk/osprey/driver/main.c
Log:
Fix option "--print-search-dir -m32" problem, the output include **/lib64,
which should be **/lib.
The root reason is "opencc -m32 --print-search-dir" will call its "gcc
--print-search-dir ", but it omit the "-m32" option.
Code Review: Sun Chan
Modified: trunk/osprey/driver/main.c
===================================================================
--- trunk/osprey/driver/main.c 2011-04-19 23:28:46 UTC (rev 3559)
+++ trunk/osprey/driver/main.c 2011-04-20 08:06:42 UTC (rev 3560)
@@ -1341,7 +1341,11 @@
char *gcc_cmd = NULL;
FILE *fp = NULL;
+#ifdef TARG_X8664
+ if (asprintf(&gcc_cmd, "%s %s %s", gcc_path, (abi ==
ABI_N32)?"-m32":"", cmdline) == -1) {
+#else
if (asprintf(&gcc_cmd, "%s %s", gcc_path, cmdline) == -1) {
+#endif
internal_error("cannot allocate memory");
goto bail;
}
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel