@@ -521,6 +521,12 @@ $(LIB_DIR)/cleaned_old_boost: $(wildcard $(LIB_DIR)/libboost_*) $(wildcard $(INC
521
521
+rm -Rf $(INC_DIR ) /boost
522
522
+touch $(LIB_DIR ) /cleaned_old_boost
523
523
524
+ # We used to build elfutils with libdebuginfod, but we now need to build
525
+ # without it.
526
+ $(LIB_DIR ) /cleaned_old_elfutils :
527
+ +rm -f $(LIB_DIR ) /libelf.a $(LIB_DIR ) /libebl.a $(LIB_DIR ) /libdwfl.a $(LIB_DIR ) /libdwelf.a $(LIB_DIR ) /libdw.a
528
+ +touch $(LIB_DIR ) /cleaned_old_elfutils
529
+
524
530
$(LIB_DIR ) /libvgio.a : $(LIB_DIR ) /libhts.a $(LIB_DIR ) /pkgconfig/htslib.pc $(LIB_DIR ) /cleaned_old_protobuf_v003 $(LIBVGIO_DIR ) /CMakeLists.txt $(LIBVGIO_DIR ) /src/* .cpp $(LIBVGIO_DIR ) /include/vg/io/* .hpp $(LIBVGIO_DIR ) /deps/vg.proto
525
531
+rm -f $(CWD ) /$(INC_DIR ) /vg.pb.h $(CWD ) /$(INC_DIR ) /vg/vg.pb.h
526
532
+rm -Rf $(CWD ) /$(INC_DIR ) /vg/io/
@@ -665,9 +671,12 @@ $(LIB_DIR)/libdwfl.a: $(LIB_DIR)/libelf.a
665
671
# We can't build elfutils from Git without "maintainer mode".
666
672
# There are some release-only headers or something that it complains it can't find otherwise.
667
673
# We also don't do a normal make and make install here because we don't want to build and install all the elfutils binaries and libasm.
668
- $(LIB_DIR ) /libelf.a : $(ELFUTILS_DIR ) /libebl/* .c $(ELFUTILS_DIR ) /libebl/* .h $(ELFUTILS_DIR ) /libdw/* .c $(ELFUTILS_DIR ) /libdw/* .h $(ELFUTILS_DIR ) /libelf/* .c $(ELFUTILS_DIR ) /libelf/* .h $(ELFUTILS_DIR ) /src/* .c $(ELFUTILS_DIR ) /src/* .h
674
+ # We need to disable libdebuginfod or the static binary will try and load it at
675
+ # runtime and pull in incompatible libs it depends on on whatever system it's
676
+ # running on.
677
+ $(LIB_DIR ) /libelf.a : $(ELFUTILS_DIR ) /libebl/* .c $(ELFUTILS_DIR ) /libebl/* .h $(ELFUTILS_DIR ) /libdw/* .c $(ELFUTILS_DIR ) /libdw/* .h $(ELFUTILS_DIR ) /libelf/* .c $(ELFUTILS_DIR ) /libelf/* .h $(ELFUTILS_DIR ) /src/* .c $(ELFUTILS_DIR ) /src/* .h $(LIB_DIR ) /cleaned_old_elfutils
669
678
+cd $(CWD ) /$(INC_DIR ) / && rm -Rf elfutils gelf.h libelf.h dwarf.h libdwflP.h libdwfl.h libebl.h libelf.h
670
- +. ./source_me.sh && cd $(ELFUTILS_DIR ) && autoreconf -i -f && ./configure --enable-maintainer-mode --disable-debuginfod --prefix=$(CWD ) $(FILTER )
679
+ +. ./source_me.sh && cd $(ELFUTILS_DIR ) && autoreconf -i -f && ./configure --enable-maintainer-mode --disable-libdebuginfod --disable- debuginfod --prefix=$(CWD ) $(FILTER )
671
680
+. ./source_me.sh && cd $(ELFUTILS_DIR ) /libelf && $(MAKE ) clean && $(MAKE ) libelf.a $(FILTER )
672
681
+. ./source_me.sh && cd $(ELFUTILS_DIR ) /libebl && $(MAKE ) clean && $(MAKE ) libebl.a $(FILTER )
673
682
+. ./source_me.sh && cd $(ELFUTILS_DIR ) /libdwfl && $(MAKE ) clean && $(MAKE ) libdwfl.a $(FILTER )
0 commit comments