orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
640 stars 38 forks source link

Fix OpenBSD build #282

Closed kiwec closed 1 year ago

kiwec commented 1 year ago

Builds v11.4 using the following command:

CFLAGS=-I/usr/local/include gmake CC=clang CXX=clang LDLIBS="-L/usr/local/lib -lm -liconv -lstdc++" GTK2=1

We need to override some values directly in the command, because some dependency makefiles also set $(CC) and such, which causes problems when linking.

Since the changes to textadept.c are pretty minimal (use realpath to get textadept_home and change an include), I'd recommend re-adding support for OpenBSD. Just need to document that build command somewhere :)

orbitalquark commented 1 year ago

Thanks again for your efforts. I don't want to belittle them, but there has been a lot of internal churn during 11.5 development, and I'm not very confident that I can support any of the BSDs going forward. If you attempt to compile the latest nightly, you'll see what I mean.

Also, does realpath(argv[0]) work for symlinked exes? I was under the impression that it does not, hence the need for procfs.