Skip to content

Commit

Permalink
xrdp/build: export LDFLAGS="--static"; # --enable-static \ >> --disab…
Browse files Browse the repository at this point in the history
…le-static \ ##avoid xx.a
  • Loading branch information
sam#gemmi-win10 committed Nov 8, 2023
1 parent f32dc05 commit d0b24a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions compile/src/x-xrdp/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ cat $f |grep lX11 -n
# --disable-pam --enable-static===
# https://github.com/PWN-Term/pwn-packages/blob/df4740ecf3dc3433c869abd515964e60dea7dd0c/packages/xrdp/build.sh
# --disable-shared \ >> --enable-shared \ ##无lib/libvnc.so
# --enable-static \ >> --disable-static \ ##avoid xx.a
./configure \
--prefix=$TARGETPATH \
--enable-vsock \
Expand All @@ -155,9 +156,9 @@ cat $f |grep lX11 -n
--enable-mp3lame \
--enable-pixman \
--disable-pam \
--enable-static \
--enable-shared \
--enable-strict-locations
--disable-static \
--enable-shared
# --enable-strict-locations
#CFLAGS='-Wno-format';


Expand All @@ -171,7 +172,8 @@ cat $f |grep lX11 -n


# STATIC
export LDFLAGS="--static -static -Wl,--strip-all -Wl,--as-needed"
# export LDFLAGS="--static -static -Wl,--strip-all -Wl,--as-needed"
export LDFLAGS="--static"
# /usr/bin/x86_64-alpine-linux-musl-ld: cannot find -lssl
# /usr/bin/x86_64-alpine-linux-musl-ld: cannot find -lcrypto
# apk add openssl-libs-static
Expand Down

0 comments on commit d0b24a0

Please sign in to comment.