JohannesBuchner / cuba

Cuba - a library for multidimensional numerical integration
http://www.feynarts.de/cuba/
GNU Lesser General Public License v3.0
17 stars 6 forks source link

Update makesharedlib.sh #3

Open mariabenitocst opened 5 years ago

mariabenitocst commented 5 years ago

I had a problem while building the cuba shared library, I got an error after typing "./makesharedlib.sh". The problem comes from the file __.SYMDEF SORTED which is not found.

This is a pull request to grep out " .SYMDEF SORTED" as @JohannesBuchner suggested in issue #117 from pyMultinest.

parsotat commented 1 year ago

As an additional change for MacOS compatibility, line 5: sed 's/CFLAGS = -O3 -fomit-frame-pointer/CFLAGS = -O3 -fPIC -fomit-frame-pointer/g' --in-place makefile should become:

sed -i'' -e 's/CFLAGS = -O3 -fomit-frame-pointer/CFLAGS = -O3 -fPIC -fomit-frame-pointer/g' makefile

This was the correct sed command that made this work on my MacOS machine.

JohannesBuchner commented 12 months ago

I think the makesharedlib.sh building is broken on Linux though, making the repo unusable...