rageworx / listusb

A detailed listing USB device for macOS shell(console).
GNU General Public License v3.0
3 stars 1 forks source link

static libc++ build for macOS #10

Open rageworx opened 1 year ago

rageworx commented 1 year ago

There's reference of /usr/lib/libc++.dylib dependency makes brew install required Xcode console. Try to solve this issue.

rageworx commented 1 year ago

Seems to macOS clang don't allow static libc++. Is there anyway to embedding libc++ ? Or don't need to do ? homebrew tap installation requires Xcode, why ? by /usr/lib/libc++.dylib ? Need to check what dependency requires Xcode installation when brew-installation.

rageworx commented 1 year ago

Mostly Linux static libgcc and libg++ looking for these common libraries,

> ldd bin/listusb
        linux-vdso.so.1 (0x0000007f88215000)
        libudev.so.1 => /lib/aarch64-linux-gnu/libudev.so.1 (0x0000007f880ae000)
        libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f88082000)
        libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f87fd7000)
        libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x0000007f87fb5000)
        libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f87e6b000)