From d93bb4cf4bc4ca278dde97308133a1c2d69e96b7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 13 Nov 2016 09:04:54 -0800 Subject: [PATCH 1/3] Check that X11RDPBASE is set, give it a better description Use BINBASE for the binary install path. --- xorg/X11R7.6/rdp/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xorg/X11R7.6/rdp/Makefile b/xorg/X11R7.6/rdp/Makefile index c18e01b6..7992d334 100644 --- a/xorg/X11R7.6/rdp/Makefile +++ b/xorg/X11R7.6/rdp/Makefile @@ -1,6 +1,9 @@ +# X11RDPBASE is the top-level X11rdp install directory +ifeq ($(X11RDPBASE),) +$(error X11RDPBASE needs to be set) +endif -#X11RDPBASE is an environment variable that needs to be set - +BINBASE = $(X11RDPBASE)/bin INCBASE = $(X11RDPBASE)/include LIBBASE = $(X11RDPBASE)/lib @@ -113,4 +116,4 @@ fbcmap_mi.o: ../build_dir/xorg-server-1.9.3/fb/fbcmap_mi.c $(CC) $(CFLAGS) -c ../build_dir/xorg-server-1.9.3/fb/fbcmap_mi.c install: all - $(INSTALL) X11rdp $(X11RDPBASE)/bin/X11rdp + $(INSTALL) X11rdp $(BINBASE)/X11rdp From cd6e8faccccc7496fcced3177e1289a4d117090d Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 13 Nov 2016 09:04:59 -0800 Subject: [PATCH 2/3] Reorder static libraries to avoid the need to link them twice --- xorg/X11R7.6/rdp/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xorg/X11R7.6/rdp/Makefile b/xorg/X11R7.6/rdp/Makefile index 7992d334..cdfea385 100644 --- a/xorg/X11R7.6/rdp/Makefile +++ b/xorg/X11R7.6/rdp/Makefile @@ -26,23 +26,24 @@ fbcmap_mi.o #fbcmap_mi.o #fbcmap.o -LIBS = $(XSRCBASE)/dbe/.libs/libdbe.a \ - $(XSRCBASE)/dix/.libs/libdix.a \ +LIBS = \ $(XSRCBASE)/dix/.libs/libmain.a \ + librdp.a \ + $(XSRCBASE)/dbe/.libs/libdbe.a \ + $(XSRCBASE)/dix/.libs/libdix.a \ $(XSRCBASE)/fb/.libs/libfb.a \ $(XSRCBASE)/mi/.libs/libmi.a \ - $(XSRCBASE)/os/.libs/libos.a \ $(XSRCBASE)/randr/.libs/librandr.a \ - $(XSRCBASE)/record/.libs/librecord.a \ $(XSRCBASE)/render/.libs/librender.a \ + $(XSRCBASE)/os/.libs/libos.a \ + $(XSRCBASE)/record/.libs/librecord.a \ $(XSRCBASE)/xkb/.libs/libxkb.a \ $(XSRCBASE)/Xext/.libs/libXext.a \ $(XSRCBASE)/Xi/.libs/libXi.a \ $(XSRCBASE)/glx/.libs/libglx.a \ $(XSRCBASE)/xfixes/.libs/libxfixes.a \ $(XSRCBASE)/damageext/.libs/libdamageext.a \ - $(XSRCBASE)/miext/damage/.libs/libdamage.a \ - librdp.a + $(XSRCBASE)/miext/damage/.libs/libdamage.a LLIBS = -Wl,-rpath=$(LIBBASE) -lfreetype -lz -lm -lXfont -lXau \ -lXdmcp -lpixman-1 -lrt -ldl -lcrypto -lGL -lXdamage @@ -101,7 +102,7 @@ all: X11rdp X11rdp: $(OBJS) $(AR) rvu librdp.a $(OBJS) ranlib librdp.a - $(CC) $(LDFLAGS) -o X11rdp $(LIBS) $(LIBS) $(LLIBS) + $(CC) $(LDFLAGS) -o X11rdp $(LIBS) $(LLIBS) clean: rm -f $(OBJS) librdp.a From 5bb54122ba8120ef3cc5a339e740a944d55755ac Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 13 Nov 2016 09:14:58 -0800 Subject: [PATCH 3/3] Strip the installed X11rdp binary, not the original --- xorg/X11R7.6/buildx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xorg/X11R7.6/buildx.sh b/xorg/X11R7.6/buildx.sh index 4245c955..0c61b5e1 100755 --- a/xorg/X11R7.6/buildx.sh +++ b/xorg/X11R7.6/buildx.sh @@ -278,8 +278,8 @@ fi # this will copy the build X server with the other X server binaries cd rdp -strip X11rdp cp X11rdp $X11RDPBASE/bin +strip $X11RDPBASE/bin/X11rdp if [ "$2" = "drop" ]; then echo ""