diff options
author | Pavel Roskin <plroskin@gmail.com> | 2016-01-26 22:34:27 -0800 |
---|---|---|
committer | Pavel Roskin <plroskin@gmail.com> | 2016-01-26 22:36:59 -0800 |
commit | ee1a2376854b3cf025cf69b11ea28863df1f12b2 (patch) | |
tree | 723ceb2d89d7c110ebf01f8d29e1d98d5332acd5 /xrdp | |
parent | a25e5e99dd2f6d8d553ee602024713707463fd4e (diff) | |
download | xrdp-proprietary-ee1a2376854b3cf025cf69b11ea28863df1f12b2.tar.gz xrdp-proprietary-ee1a2376854b3cf025cf69b11ea28863df1f12b2.zip |
Remove GOT_PREFIX, it's a broken hack of limited utility
To add flags to the compiler, CFLAGS, CPPFLAGS or LDFLAGS can be used on
the configure command line.
The need to add flags depends on the location of the headers and
libraries of the dependencies, which is orthogonal to the directory where
xrdp will be installed.
The implementation in configure.ac has a stray closing bracket, making
GOT_PREFIX true even if --prefix is not passed.
The implementation is inconsistent - the only affected makefiles are for
xrdp and libxrdp.
Changing rpath manually is wrong in most cases. Libtool should be able to
set rpath correctly on its own.
Using $(prefix)/lib ignores the libdir setting. For many 64-bit systems,
/usr/lib is used for 32-bit libraries. Adding 32-bit libraries to the
rpath slows down 64-bit executables, as the dynamic loader searches for
libraries in a wrong directory.
There is no way to disable GOT_PREFIX if --prefix has to be passed.
Fedora RPM patches configure.ac and needs to rerun autoconf and automake
after that.
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/Makefile.am | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/xrdp/Makefile.am b/xrdp/Makefile.am index 8a8b36eb..8014761a 100644 --- a/xrdp/Makefile.am +++ b/xrdp/Makefile.am @@ -11,11 +11,6 @@ else EXTRA_DEFINES = -DXRDP_NODEBUG endif -if GOT_PREFIX -EXTRA_INCLUDES += -I$(prefix)/include -EXTRA_FLAGS += -L$(prefix)/lib -Wl,-rpath -Wl,$(prefix)/lib -endif - if XRDP_RFXCODEC EXTRA_DEFINES += -DXRDP_RFXCODEC EXTRA_INCLUDES += -I$(top_srcdir)/librfxcodec/include |