Linker groups don't work on OSX; go back to the hacky way of simply specifying
authorDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:03:27 +0000 (21:03 +0100)
committerDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:03:27 +0000 (21:03 +0100)
the inputs multiple times, which seems to work.

first/build.lua

index 85df519..20eab73 100644 (file)
@@ -220,7 +220,7 @@ definerule("cprogram",
                commands = {
                        type="strings",
                        default={
-                               "$(CC) -o %{outs[1]} -Wl,--start-group %{ins} -Wl,--end-group"
+                               "$(CC) -o %{outs[1]} %{ins} %{ins}"
                        },
                }
        },