diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-04-09 23:53:06 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-04-09 23:53:06 -0700 |
| commit | 5183cbd78f43f97e4e3d1cb5ad36a07fdcee51e0 (patch) | |
| tree | 6d8bc2e6472ac4b4c93661c534a6342794f78f52 | |
| parent | 9114b41b98683a1c49ce2d8c197022606ec44cfe (diff) | |
Minor tweak to support compiling with TCC
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | bb.h | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ NAME=bb PREFIX= -CC=gcc -O=-O2 +CC ?= gcc +O ?= -O2 CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\ -Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits @@ -245,4 +245,10 @@ static const struct termios default_termios = { static const char *description_str = "bb - an itty bitty console TUI file browser\n"; static const char *usage_str = "Usage: bb (-h/--help | -v/--version | -s | -d | -0 | +command)* [[--] directory]\n"; +// Hack to get TinyCC (TCC) compilation to work: +// https://lists.nongnu.org/archive/html/tinycc-devel/2018-07/msg00000.html +#ifdef __TINYC__ +void * __dso_handle __attribute((visibility("hidden"))) = &__dso_handle; +#endif + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 |
