summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-doc/yodl/files/yodl-3.00.0-ldflags.patch')
-rw-r--r--app-doc/yodl/files/yodl-3.00.0-ldflags.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-doc/yodl/files/yodl-3.00.0-ldflags.patch b/app-doc/yodl/files/yodl-3.00.0-ldflags.patch
new file mode 100644
index 0000000..4d31204
--- /dev/null
+++ b/app-doc/yodl/files/yodl-3.00.0-ldflags.patch
@@ -0,0 +1,52 @@
+ INSTALL.im | 4 +++-
+ icmake/program | 2 +-
+ icmake/stdcompile | 2 +-
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/INSTALL.im b/INSTALL.im
+index 369885d..4b7532f 100644
+--- a/INSTALL.im
++++ b/INSTALL.im
+@@ -56,6 +56,8 @@ string COMPILER;
+ // used with the gprof profiler. When specified, no stripping is performed
+ // at ./build program strip (see INSTALL)
+
++string LDFLAGS;
++
+ void setLocations()
+ {
+ BASE = "/usr";
+@@ -65,7 +67,7 @@ void setLocations()
+ MAN = BASE + "/share/man";
+ DOC = BASE + "/share/doc/yodl";
+ DOCDOC = BASE + "/share/doc/yodl-doc";
+-
++ LDFLAGS = "GENTOOLDFLAGS";
+ COMPILER = "gcc";
+ // COMPILER = "gcc-4.5";
+ }
+diff --git a/icmake/program b/icmake/program
+index 70e7e10..81f873c 100644
+--- a/icmake/program
++++ b/icmake/program
+@@ -17,7 +17,7 @@ void programYodlpost()
+
+ void programYodlverbinsert()
+ {
+- run(COMPILER + " -o " + g_install + BIN + "/yodlverbinsert " + g_copt +
++ run(COMPILER + " " + LDFLAGS + " -o " + g_install + BIN + "/yodlverbinsert " + g_copt +
+ " src/verbinsert/verbinsert.c " + g_lopt);
+ }
+
+diff --git a/icmake/stdcompile b/icmake/stdcompile
+index 57f0b99..7e011cd 100644
+--- a/icmake/stdcompile
++++ b/icmake/stdcompile
+@@ -1,6 +1,6 @@
+ void link(string program)
+ {
+- exec(COMPILER, "-o", g_install + BIN + "/" + program,
++ exec(COMPILER, LDFLAGS, "-o", g_install + BIN + "/" + program,
+ g_wip + program + "/*.o",
+ "-L" + g_wip, "-lyodl", g_lopt);
+ }