| Age | Commit message (Collapse) | Author | Files | Lines |
|
distributions that want this flag set do so on a system wide level. for
example Gentoo, Fedora, Debian, and OpenSUSE.
since vis sets it when invoking cc via make it overwrites the system
setting (and pollutes the output with redefinition warnings).
For reference here is the related bug in Gentoo:
https://bugs.gentoo.org/892960
|
|
|
|
|
|
Gracefully fallback to curses(3) (no libcurses `.pc' file is present
and `-l$libcurses' is used and hence `-lcurses' (not `-llibcurses'!)).
|
|
Previously these were only used to compile the main project source,
resulting in inconsistencies between the feature detection and actual
usage.
|
|
memrchr() signature is not exposed by default for NetBSD. If one does
not add -D_NETBSD_SOURCE, the compiler uses its own signature for
memrchr() that returns a 32-bit integer, leading to misbehaviour in some
situations. Defining _BSD_SOURCE doesn't work, so we define
_NETBSD_SOURCE.
|
|
This is required to build with lua 5.4.x.
|
|
|
|
Was also reported in #780.
|
|
Make macro definitions and enums available to debugger.
|
|
|
|
Try the possible library names regardless of .pc file availability.
|
|
|
|
Fix #607
|
|
|
|
Fix #636
|
|
Set $PATH and $TERMINFO_DIRS environment variables, use chdir(2) to
simplify extraction logic, improve error handling.
|
|
luaL_openlibs is actually declared in lualib.h.
|
|
|
|
These are generally implemented efficiently in libc.
While memrchr(3) is non-standard, it is a common extension.
If it is not available, we use a simple C implementation from musl.
|
|
|
|
|
|
The intention of this is not to slowly reimplement curses but to provide
a minimal working terminal UI backend which can also be used for debugging,
fuzzing and in environments where curses is not available.
Currently no attempt is made to optimize terminal output. The amount of
flickering will depend on the smartness of your terminal emulator.
|
|
|
|
$ ./configure --disable-help
shrinks the binary by about 20K on a x86_64 system.
|
|
$ ./configure --disable-lua
will no longer look for liblpeg.
|
|
While memory consumption should be improved, backward searches
will still be slow, because they are implemented in terms of
repeated forward searches. It needs to be investigated whether
the underlying automaton can have its transitions reversed and
essentially run backwards, as is the case in sam.
|
|
This allows inclusion in other Makefiles (e.g. for C unit tests).
|
|
It links lpeg statically into the vis binary, meaning it does not need
to be dlopen(3)-ed at runtime. While this improves the portability of
the resulting vis binary, it is not necessary to enable this option to
get syntax highlighting support.
Maybe the option should be renamed to avoid further confusion.
|
|
These are used by `make standalone` but are not really appropriate
for normal usage and just cause confusion as demonstrated by #373.
|
|
|
|
The generic lua pkg-config name also match for Lua 5.1 which
then results in a linker error because the necessary functions
are not available.
|
|
SIGWINCH is not part of POSIX. In contrast to the other BSD
variants, FreeBSD does not expose it when defining _BSD_SOURCE.
This is probably not the 'correct' solution, but seems to
work for now.
Instead of defining it globally it might have been better to add
the necessary #define to the only source file making use of
SIGWINCH.
Close #302
|
|
|
|
In theory this should be as simple as:
$ cc -fPIE -pie --static helloworld.c
But unfortunately by default this will always add a PT_INTERP referencing
the dynamic loader/linker. On latest binutils >=2.26 this can be worked
around by supplying --no-dynamic-linker. Also tweak the musl-gcc wrapper
to use rcrt1.o as startup file.
|
|
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
This reverts commit d6effd021d2aa2b6c452f229046a85c5f1a252a7.
|
|
|
|
This way we make sure the flags are in place when building
dependencies.
|
|
We need some basic configuration before building dependencies. For
example useful CFLAGS have to be in place to prevent linker errors.
The configure script is run again later with some extra parameters.
|
|
There seems to be something wrong with the libtermkey build, which
uses libtool and somehow does not get build correctly for PIE.
|
|
Run configure script for all targets instead of fiddling with
Makefile variables directly.
|
|
This should let configure pick up the lua libraries on FreeBSD 10.
|
|
fixes #214
|
|
|
|
|
|
Using -std=c99 in combination with c99 does not make sense.
Some versions of Mac OS seem to have a broken wrapper implementing
the c99 utility which always generates 32-bit code instead of
targeting the native architecture.
http://stackoverflow.com/questions/4182413
Also add clang to the list of compilers to try.
|
|
On Cygwin the configure check for libtermkey fails due to unresolved
symbols from libcurses.
The pkg-config file of libtermkey lacks a reference to its
dependencies (either curses or unibilium). Since we depend on
curses anyway we can fix this by adding $LDFLAGS_CURSES to the
configure check.
|
|
This should fix configure checks on Cygwin whereas before gcc would
attempt (and fail) to write to /dev/null.exe
|
|
|