Jump to content

Shared Library?


PaulS

Recommended Posts

Hello @PaulS,

Sure, you can compile anything into a static or shared library. You just have to setup your compiler the right way.
If the question is whether we have any guides for doing that with the µGFX library or whether we have support for that built-into our Makefile system then the answer is "no". But the process is the same as for any other thing you'd compile.

In general you wouldn't really want to do that in most cases though. The µGFX library is very small and compiles very fast, especially when you use the single-file compile (when using our Makefile system, you can set GFX_SINGLEFILE or something like that to TRUE).

Link to comment
Share on other sites

One note, I think OPT_MAKE_LIB=yes only creates a static library.  I (think) a shared library would be better for my needs.

Adding the following to the Makefile:

CFLAGS   = -fpic
LDFLAGS  = -shared

Seems like it will work,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...