apenwarr-redo/docs/cookbook/c/all.rc.od
Avery Pennarun 88250334da redoconf: move -Wl,-rpath flags to shlib.rc and add -Wl,-z,origin.
It was kind of ugly to have this kind of special flag directly in
link.od; now we detect whether it's available.  This also gives a
project the ability to override the flag in some other way if they
want.

As a result, rc/shlib.rc needs to be included in all.rc.od if you want
to create or link against shared libraries.

While we're here, also add -Wl,-z,origin on platforms where it works.
This is apparently needed for FreeBSD 8.0 at least, and probably other
platforms.

Reported-by: Wayne Scott <wsc9tt@gmail.com>
2019-03-01 13:55:22 -05:00

24 lines
424 B
Text

. ./redoconf.rc
rc_include \
rc/CC.required.rc \
rc/CXX.rc \
rc/shlib.rc \
rc/libqt4.rc \
rc/libgtk2.rc \
rc/Wextra.rc \
rc/Wall.rc \
rc/libm.rc \
rc/rt.autolib.rc \
rc/libpng.rc \
rc/clock_gettime.rc \
rc/mach__mach_time.h.rc \
rc/windows.h.rc \
rc/posix.rc \
rc/printf_lld.rc \
rc/extra.rc \
rc/all.h.precompiled.rc \
rc/all.hpp.precompiled.rc
rc_appendln LIBS "$LIBRT"
rc_appendln LIBS "$LIBM"
rc_save