Lecrapouille / MyMakefile

[Build System][v2-rc][Functional] Generic but complete Makefile for all my C++ GitHub projects (and also for your projects)
GNU General Public License v3.0
1 stars 0 forks source link

Create static libs from other thirdpart static libs not working #3

Closed Lecrapouille closed 2 years ago

Lecrapouille commented 2 years ago

https://github.com/sebastiandev/zipper/tree/v2.x.y

THIRDPART_LIBS += \
    $(abspath $(THIRDPART)/zlib-ng/build/libz.a) \
    $(abspath $(THIRDPART)/minizip/build/libaes.a) \
    $(abspath $(THIRDPART)/minizip/build/libminizip.a)

does not work.

nm '/home/qq/MyGitHub/zipper/build/libzipper.a.2.0.0' | grep crc32
                 U crc32

I have to do:

cd build
ar -x /home/qq/MyGitHub/zipper/external/zlib-ng/build/libz.a
...

This extract all .o files and then have to link back all files.

Lecrapouille commented 2 years ago

Not perfect solution but working for the moment https://stackoverflow.com/questions/73600907/create-one-static-library-from-several-others-static-libraries-in-makefile