diff --git a/setup.py b/setup.py index aca3bb99..846c7874 100644 --- a/setup.py +++ b/setup.py @@ -7,9 +7,6 @@ # Compile with qasm_synth for now extra_compile_args.append("-DQASM_SYNTH") extra_compile_args.append("-DEXPR_GMP") -extra_compile_args.append("-lgmpxx") -extra_compile_args.append("-lgmp") -extra_compile_args.append("-L/usr/lib/x86_64-linux-gnu") # If the platform seem to be MSVC if sys.platform == "win32" and not sys.platform == "cygwin" and not sys.platform == "msys": @@ -20,6 +17,7 @@ "pystaq", ["pystaq/staq_wrapper.cpp"], extra_compile_args=extra_compile_args, + extra_link_args=["-lgmp", "-lgmpxx"], cxx_std=17, include_pybind11=False, ),