please go ahead Sun On Wed, Apr 20, 2011 at 2:22 PM, 朱庆 <zqing1...@gmail.com> wrote: > Hi all, > > Can gatekeeper help review this patch? > > The problem is for option --print-search-dir -m32 the dir found > 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. > > The fix is : > Index: main.c > =================================================================== > --- main.c (revision 3552) > +++ main.c (working copy) > @@ -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; > } > > Thanks > zhuqing > > ------------------------------------------------------------------------------ > 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 > Open64-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/open64-devel >
------------------------------------------------------------------------------ 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 Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel