Skip to content

Commit 2e9907a

Browse files
Merge pull request #95 from fledge-iot/FOGL-8538B
FOGL-8538 - Reverted old way of libexpat compilation
2 parents 689a235 + 04dde8c commit 2e9907a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ others/jansson
1616
others/lib60870
1717
others/libiec61850
1818
others/S2OPC
19-
others/expat-2.6.0
19+
others/libexpat
2020
others/check-0.15.2
2121
others/mbedtls-2.28.7
2222
others/*.tar.gz

others/scripts/s2opcua/requirements.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ fi
4848
# libexpat:
4949
cd ${git_root}
5050
libexpat_version="2.6.0"
51-
rm -rf expat-${libexpat_version}.tar.gz expat-${libexpat_version}
52-
wget https://github.com/libexpat/libexpat/releases/download/R_2_6_0/expat-${libexpat_version}.tar.gz
53-
tar xzvf expat-${libexpat_version}.tar.gz
51+
libexpat_branch="R_${libexpat_version//./_}"
52+
rm -rf libexpat
53+
git clone https://github.com/libexpat/libexpat.git --branch ${libexpat_branch} --depth 1
5454
(
55-
cd expat-${libexpat_version}
56-
mkdir build
57-
cd build
58-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_SHARED_LIBS=ON ..
59-
make
55+
cd libexpat/expat
56+
./buildconf.sh && \
57+
./configure && \
58+
make && \
6059
sudo make install
6160
)
6261

0 commit comments

Comments
 (0)