Skip to content

Commit 4f17d7a

Browse files
committed
update build.yml
1 parent 215dccc commit 4f17d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
/usr/local/lib/libxerces-c*.a
224224
/usr/local/include/xercesc
225225
/usr/local/lib/pkgconfig/xerces-c.pc
226-
key: xerces-static-${{ env.XERCES_VERSION }}-${{ runner.os }}
226+
key: xerces-static-${{ env.XERCES_VERSION }}-${{ runner.os }}-fPIC
227227

228228
- name: Build static xerces
229229
if: steps.cache-xerces.outputs.cache-hit != 'true'
@@ -235,7 +235,7 @@ jobs:
235235

236236
cd xerces-c-${{ env.XERCES_VERSION }}
237237

238-
PKG_CONFIG="pkg-config --static" ./configure --without-curl --without-icu --enable-static --disable-shared
238+
PKG_CONFIG="pkg-config --static" CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --without-curl --without-icu --enable-static --disable-shared
239239
make -j2
240240
sudo make install
241241

0 commit comments

Comments
 (0)