Skip to content

Commit

Permalink
patch makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>

pa

Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Nov 11, 2021
1 parent 0b29102 commit 2096f0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildlightning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ sed -i "s'BUILDROOT'${BUILDROOT}'" config.vars

# patch makefile
sed -i "s'/usr/local'${BUILDROOT}'" Makefile
#sed -i 's/LDLIBS =/LDLIBS +=/g' Makefile
sed -i "s'-lpthread''" Makefile
sed -i "s'ALL_C_HEADERS := header_versions_gen.h version_gen.h'ALL_C_HEADERS :='" Makefile
sed -i "s'./configure'#./configure'" Makefile
Expand All @@ -39,13 +40,13 @@ patch -p1 < ${REPOPATH}/lightning-endian.patch
git clone https://github.com/clightning4j/esplora_clnd_plugin.git
cd esplora_clnd_plugin && git checkout $ESPLORA_VERSION && cd ..
cp esplora_clnd_plugin/esplora.c plugins/
#sed -i 's/LDLIBS = -L/usr/local/lib /LDLIBS = -L/usr/local/lib -lcurl -lssl -lcrypto /g' Makefile
sed -i 's/LDLIBS = -L/usr/local/lib /LDLIBS = -L/usr/local/lib -lcurl -lssl -lcrypto /g' Makefile
patch -p1 < esplora_clnd_plugin/Makefile.patch

# build external libraries and source
make PIE=1 DEVELOPER=0 || echo "continue"
make clean -C ccan/ccan/cdump/tools
make LDFLAGS="" CC="${CONFIGURATOR_CC}" LDLIBS="-L/usr/local/lib" -C ccan/ccan/cdump/tools
make LDFLAGS="" CC="${CONFIGURATOR_CC}" -C ccan/ccan/cdump/tools
make PIE=1 DEVELOPER=0
deactivate
cd ..

0 comments on commit 2096f0e

Please sign in to comment.