Reputation: 5805
Is there any way to link against RedHat static libraries while building on Ubuntu and using GCC?
Upvotes: 0
Views: 195
Reputation: 15218
Copy over the RedHat library and header files to a directory preserving directory structure and give GCC the --sysroot directive to tell it to look in that directory as prefix for searching libs and headers
Upvotes: 2
Reputation: 36049
I see two obvious solutions:
The first solution is the easiest, but you might run into libc version issues. The second solution is guaranteed to work, but not far from running a complete RedHat for compilation.
Upvotes: 1