diff options
author | gbmor <ben@gbmor.dev> | 2020-02-13 16:48:24 -0500 |
---|---|---|
committer | gbmor <ben@gbmor.dev> | 2020-02-13 16:48:24 -0500 |
commit | 78c46acf989ad99bb57d4af34af7486a64a32ed4 (patch) | |
tree | e550be7af9c6b75f2bfc14ed240e1489a91673d6 | |
parent | 8f76a0bb29a9fd928d94efca31502beab600e17e (diff) | |
download | wiki-78c46acf989ad99bb57d4af34af7486a64a32ed4.tar.gz |
added cflags/ldflags info
-rw-r--r-- | pages/bchs.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pages/bchs.md b/pages/bchs.md index 4d68eac..9c5e455 100644 --- a/pages/bchs.md +++ b/pages/bchs.md @@ -33,8 +33,9 @@ as compiled CGI here at tilde.institute. Once you've written your software to be served via CGI, be sure to statically link the executables. Sure, there's a larger file size, but -the benefits outweigh that in this case - there's no relying on what -I may or may not have installed on tilde.institute. For example: +the benefits outweigh that in this case - there's no relying on libraries +I may or may not have available in the httpd chroot on tilde.institute. +For example: ``` $ cc -static -g -W -Wall -o app.cgi app.c @@ -63,5 +64,13 @@ to test the compilation. It installs to `~/public_html` with the proper ownership and permissions. View the `index.c` source and the `makefile` to see what goes on under the hood! Feel free to adapt it your own projects! +**Note:** You may need to add the following to `CFLAGS` +``` ++I/usr/local/include +``` +..and the following to `LDFLAGS` +``` +-lkcgihtml -lkcgi -lz +``` [back](/) |