Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install does not work on newer MacOS (install command/folders) #150

Open
bferguson3 opened this issue Nov 7, 2022 · 3 comments
Open

Comments

@bferguson3
Copy link

The install command on MacOS does not have the -t command line flag, so it fails.

Additionally, the folder name for the libraries generated was not "lib" but "libmpc.so.dSYM".

I installed the files manually by copying them and then manually resetting their permissions afterward:

cp -r ./$(DIST)/libmpc.so.dSYM $(DESTDIR)$(PREFIX)/lib
cp ./$(PROJ).c $(DESTDIR)$(PREFIX)/share/$(PROJ)
cp ./$(PROJ).h $(DESTDIR)$(PREFIX)/share/$(PROJ)

@Ashvith10
Copy link

The Makefile needs to be improved for real. I'm struggling to package this on Guix for a personal project. I'm not really sure why is there test for static and dynamic - shouldn't this be checked after building libmpc.so?

@orangeduck
Copy link
Owner

Feel free to go ahead and fix it.

@Ashvith10
Copy link

@orangeduck I have it working just fine with autotools. The test case is missing for now, so is the flag for building examples and choosing between static and dynamic (only builds shared libraries for now). But the good news is that it builds and works the way it was intended to on my system:

$ tree $(guix build -L . libmpc)
/gnu/store/ahfzm6aw4dijffqjxdvybxj1a9fh4dzi-libmpc-0.9.0
├── include
│   └── mpc.h
├── lib
│   ├── libmpc.a
│   ├── libmpc.la
│   ├── libmpc.so
│   └── pkgconfig
│       └── libmpc.pc
└── share
    └── doc
        ├── libmpc
        │   ├── LICENSE.md
        │   └── README.md
        └── libmpc-0.9.0
            └── LICENSE.md

8 directories, 8 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants