summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bld.proj1
-rw-r--r--examples/bld.sub21
-rw-r--r--examples/h.myr (renamed from lib/http/h.myr)0
-rw-r--r--examples/srvdot.myr (renamed from lib/http/srvdot.myr)0
-rwxr-xr-xmk/bootstrap/bootstrap+FreeBSD-amd64.sh2
5 files changed, 23 insertions, 1 deletions
diff --git a/bld.proj b/bld.proj
index 69ddbc2..9aa83b7 100644
--- a/bld.proj
+++ b/bld.proj
@@ -5,5 +5,6 @@ sub =
bench
support
doc
+ examples
;;
diff --git a/examples/bld.sub b/examples/bld.sub
new file mode 100644
index 0000000..132a0e9
--- /dev/null
+++ b/examples/bld.sub
@@ -0,0 +1,21 @@
+# http examples
+bin h {noinst} =
+ h.myr
+
+ lib @/lib/sys:sys
+ lib @/lib/std:std
+ lib @/lib/bio:bio
+ lib @/lib/http:http
+ lib @/lib/thread:thread
+;;
+
+bin srvdot {noinst} =
+ srvdot.myr
+
+ lib @/lib/sys:sys
+ lib @/lib/std:std
+ lib @/lib/bio:bio
+ lib @/lib/http:http
+ lib @/lib/thread:thread
+;;
+
diff --git a/lib/http/h.myr b/examples/h.myr
index 9a00e2e..9a00e2e 100644
--- a/lib/http/h.myr
+++ b/examples/h.myr
diff --git a/lib/http/srvdot.myr b/examples/srvdot.myr
index e6c0a21..e6c0a21 100644
--- a/lib/http/srvdot.myr
+++ b/examples/srvdot.myr
diff --git a/mk/bootstrap/bootstrap+FreeBSD-amd64.sh b/mk/bootstrap/bootstrap+FreeBSD-amd64.sh
index f81f9ed..b5c62b1 100755
--- a/mk/bootstrap/bootstrap+FreeBSD-amd64.sh
+++ b/mk/bootstrap/bootstrap+FreeBSD-amd64.sh
@@ -145,5 +145,5 @@ set -x
$pwd/6/6m -I lib/sys -I lib/std -I lib/bio -I lib/regex -I lib/thread mbld/test.myr
$pwd/6/6m -I lib/sys -I lib/std -I lib/bio -I lib/regex -I lib/thread mbld/deps.myr
$pwd/6/6m -I lib/sys -I lib/std -I lib/bio -I lib/regex -I lib/thread mbld/main.myr
- ld -o mbld/mbld $pwd/rt/_myrrt.o mbld/deps.o mbld/main.o mbld/util.o mbld/cpufeatures.o mbld/libs.o mbld/syssel.o mbld/config.o mbld/opts.o mbld/subtest.o mbld/types.o mbld/test.o mbld/install.o mbld/parse.o mbld/build.o -Llib/thread -lthread -Llib/bio -lbio -Llib/regex -lregex -Llib/std -lstd -Llib/sys -lsys
+ ld --gc-sections -o mbld/mbld $pwd/rt/_myrrt.o mbld/deps.o mbld/main.o mbld/util.o mbld/cpufeatures.o mbld/libs.o mbld/syssel.o mbld/config.o mbld/opts.o mbld/subtest.o mbld/types.o mbld/test.o mbld/install.o mbld/parse.o mbld/build.o -Llib/thread -lthread -Llib/bio -lbio -Llib/regex -lregex -Llib/std -lstd -Llib/sys -lsys
true