-
-
Save naoyat/c30cde521cc0e0c5e740 to your computer and use it in GitHub Desktop.
TinySVM-0.09 をMacOSXでビルドする用のパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u a/libtool b/libtool | |
--- a/libtool 2012-01-25 19:58:18.000000000 +0900 | |
+++ b/libtool 2012-01-25 20:03:45.000000000 +0900 | |
@@ -181,7 +181,7 @@ | |
old_archive_from_expsyms_cmds="" | |
# Commands used to build and install a shared archive. | |
-archive_cmds="\$CC \$(test .\$module = .yes && echo -bundle || echo -dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs\$linkopts -install_name \$rpath/\$soname \$(test -n \\\"\$verstring\\\" -a x\$verstring != x0.0 && echo \$verstring)" | |
+archive_cmds="g++ \$(test .\$module = .yes && echo -bundle || echo -dynamiclib) \$allow_undefined_flag -o \$lib \$libobjs \$deplibs\$linkopts -install_name \$rpath/\$soname \$(test -n \\\"\$verstring\\\" -a x\$verstring != x0.0 && echo \$verstring)" | |
archive_expsym_cmds="" | |
postinstall_cmds="" | |
postuninstall_cmds="" | |
diff -u a/src/getopt.h b/src/getopt.h | |
--- a/src/getopt.h 2002-08-20 15:31:17.000000000 +0900 | |
+++ b/src/getopt.h 2012-01-25 20:04:02.000000000 +0900 | |
@@ -128,7 +128,7 @@ | |
errors, only prototype getopt for the GNU C library. */ | |
extern int getopt (int argc, char *const *argv, const char *shortopts); | |
#else /* not __GNU_LIBRARY__ */ | |
-extern int getopt (); | |
+extern int getopt (int argc, char *const *argv, const char *shortopts); | |
#endif /* __GNU_LIBRARY__ */ | |
extern int getopt_long (int argc, char *const *argv, const char *shortopts, | |
const struct option *longopts, int *longind); | |
diff -u a/src/Makefile b/src/Makefile | |
--- a/src/Makefile 2012-01-25 19:58:20.000000000 +0900 | |
+++ b/src/Makefile 2012-01-25 20:06:31.000000000 +0900 | |
@@ -69,7 +69,7 @@ | |
CXX = c++ | |
DLLTOOL = dlltool | |
ECHO = echo | |
-EXEEXT = .dSYM | |
+EXEEXT = | |
JAR = jar | |
JAVA = java | |
JAVAC = javac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment