Skip to content

Commit d31f4a0

Browse files
committed
-fpic -> -fPIC due to "too many GOT entries" issue on aarch64
1 parent c2b2c1f commit d31f4a0

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

Dockerfile

+32-32
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
113113
-GNinja \
114114
-DCMAKE_BUILD_TYPE=Release \
115115
-DBUILD_SHARED_LIBS=OFF \
116-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
117-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
116+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
117+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
118118
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
119119
.. \
120120
&& ninja \
@@ -134,8 +134,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
134134
-GNinja \
135135
-DCMAKE_BUILD_TYPE=Release \
136136
-DBUILD_SHARED_LIBS=OFF \
137-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
138-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
137+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
138+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
139139
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
140140
-DEXPAT_BUILD_DOCS=OFF \
141141
-DEXPAT_BUILD_EXAMPLES=OFF \
@@ -163,8 +163,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
163163
-GNinja \
164164
-DCMAKE_BUILD_TYPE=Release \
165165
-DBUILD_SHARED_LIBS=OFF \
166-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
167-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
166+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
167+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
168168
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
169169
-Djpeg=OFF \
170170
-Djpeg12=OFF \
@@ -241,8 +241,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
241241
-GNinja \
242242
-DCMAKE_BUILD_TYPE=Release \
243243
-DBUILD_SHARED_LIBS=OFF \
244-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
245-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
244+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
245+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
246246
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
247247
-DTBB_ENABLE_IPO=ON \
248248
-DTBB_STRICT=OFF \
@@ -265,8 +265,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
265265
-GNinja \
266266
-DCMAKE_BUILD_TYPE=Release \
267267
-DBUILD_SHARED_LIBS=OFF \
268-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
269-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
268+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
269+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
270270
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
271271
-DCMAKE_PREFIX_PATH=$BUILD_DIR \
272272
-DONEDPL_BACKEND="tbb" \
@@ -288,8 +288,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
288288
-GNinja \
289289
-DCMAKE_BUILD_TYPE=Release \
290290
-DBUILD_SHARED_LIBS=OFF \
291-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
292-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
291+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
292+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
293293
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
294294
-DPAGMO_BUILD_STATIC_LIBRARY=ON \
295295
-DPAGMO_BUILD_TESTS=OFF \
@@ -311,8 +311,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
311311
-GNinja \
312312
-DCMAKE_BUILD_TYPE=Release \
313313
-DBUILD_SHARED_LIBS=OFF \
314-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
315-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
314+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
315+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
316316
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
317317
&& ninja zlibstatic \
318318
&& cp libz.a $BUILD_DIR/lib/libz.a \
@@ -335,8 +335,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
335335
-GNinja \
336336
-DCMAKE_BUILD_TYPE=Release \
337337
-DBUILD_SHARED_LIBS=OFF \
338-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
339-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
338+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
339+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
340340
-DCMAKE_INSTALL_PREFIX=${BUILD_DIR} \
341341
-DFEATURE_system_doubleconversion=OFF \
342342
-DFEATURE_system_harfbuzz=OFF \
@@ -384,8 +384,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
384384
-GNinja \
385385
-DCMAKE_BUILD_TYPE=Release \
386386
-DBUILD_SHARED_LIBS=OFF \
387-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
388-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
387+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
388+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
389389
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
390390
-DBUILD_opencv_apps=OFF \
391391
-DBUILD_opencv_calib3d=OFF \
@@ -509,8 +509,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
509509
-GNinja \
510510
-DCMAKE_BUILD_TYPE=Release \
511511
-DBUILD_SHARED_LIBS=OFF \
512-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
513-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
512+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
513+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
514514
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
515515
-DCMAKE_CXX_STANDARD=17 \
516516
-DFMT_DOC=OFF \
@@ -533,8 +533,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
533533
-GNinja \
534534
-DCMAKE_BUILD_TYPE=Release \
535535
-DBUILD_SHARED_LIBS=OFF \
536-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
537-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
536+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
537+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
538538
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
539539
-DSPDLOG_BUILD_TESTS=ON \
540540
-DSPDLOG_BUILD_EXAMPLE=OFF \
@@ -561,8 +561,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
561561
-GNinja \
562562
-DCMAKE_BUILD_TYPE=Release \
563563
-DBUILD_SHARED_LIBS=OFF \
564-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
565-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
564+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
565+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
566566
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
567567
-DBUILD_BENCHMARKS=OFF \
568568
-DGMP_INCLUDE_DIR=$BUILD_DIR/include \
@@ -590,8 +590,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
590590
-GNinja \
591591
-DCMAKE_BUILD_TYPE=Release \
592592
-DBUILD_SHARED_LIBS=OFF \
593-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
594-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
593+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
594+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
595595
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
596596
-DBUILD_PTSCOTCH=OFF \
597597
-DBUILD_LIBESMUMPS=OFF \
@@ -645,8 +645,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
645645
-GNinja \
646646
-DCMAKE_BUILD_TYPE=Release \
647647
-DBUILD_SHARED_LIBS=OFF \
648-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
649-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
648+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
649+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
650650
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
651651
-DCMAKE_PREFIX_PATH=$BUILD_DIR \
652652
-DENABLE_SPATIAL=ON \
@@ -687,8 +687,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
687687
-GNinja \
688688
-DCMAKE_BUILD_TYPE=Release \
689689
-DBUILD_SHARED_LIBS=OFF \
690-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
691-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
690+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
691+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
692692
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
693693
-DCMAKE_PREFIX_PATH="$BUILD_DIR;$BUILD_DIR/lib/cmake" \
694694
-DLIBCOMBINE_SKIP_SHARED_LIBRARY=ON \
@@ -715,8 +715,8 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
715715
-GNinja \
716716
-DCMAKE_BUILD_TYPE=Release \
717717
-DBUILD_SHARED_LIBS=OFF \
718-
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
719-
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
718+
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
719+
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
720720
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
721721
-DCATCH_INSTALL_DOCS=OFF \
722722
-DCATCH_INSTALL_EXTRAS=ON \

0 commit comments

Comments
 (0)