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

l #37

Open
luca201311 opened this issue May 3, 2017 · 7 comments
Open

l #37

luca201311 opened this issue May 3, 2017 · 7 comments

Comments

@luca201311
Copy link

luca201311 commented May 3, 2017

No description provided.

@luca201311 luca201311 changed the title Link a Library to clickOs l May 4, 2017
@fmanco
Copy link

fmanco commented May 5, 2017

Hey, maybe you made a mistake and deleted the comment?

@luca201311
Copy link
Author

luca201311 commented May 5, 2017 via email

@luca201311
Copy link
Author

Hello,
my issue was how to link a library into clickos, and build the image clickos with this library, instead to use a new elements that need this library?
where should i add the path of the library that i want to use, in which file?
Thank you,

@fmanco
Copy link

fmanco commented May 9, 2017

Hi

Unfortunately there is no straightforward way to add a library to ClickOS. I think the easiest way is to add the library files to the mini-os directory, and add the appropriate object files to stub.mk.

Best

@luca201311
Copy link
Author

thank you very much,
kindly did you mean i add all files of library and objects .o files to library in mini-os directory? and then link it with stub.mk by gcc

@fmanco
Copy link

fmanco commented May 9, 2017

You need to add the source files. Then you can search on stub.mk where the list of object files is defined and extend it with the new ones coming from the library. The objects will be built then during the build process.

@luca201311
Copy link
Author

ok i will try this,

thank you very much

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

2 participants