FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Derelict and --export-dynamic

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Tue Jul 12, 2011 8:53 am    Post subject: Derelict and --export-dynamic Reply with quote

Since --export-dynamic was added to dmd.ini on Linux, it has been causing problems with some executables that link with Derelict libs. Thanks to a comment on one of my blogs, I now understand the issue and how to solve it. As such, I'm going to be gradually updating each Derelict package with the fix.

I would write a tool to do it for me, but I really suck at text-processing and it would probably take me longer to write the script than to do it manually. Anyway, I've already updated DerelictAL and it wasn't too terribly time-consuming. More to come in the days ahead.

Also, I've figured out what I need to do to make the loaders work properly across multiple threads in D2, so once I finish with the --export-dynamic fix, I'll add that in as well.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Aug 03, 2011 7:25 am    Post subject: Reply with quote

After applying the fix to a couple of packages manually, I said to hell with it and knocked up a script to handle it for me. It wasn't too bad. After that, it all went rather quickly. To the best of my knowledge, I have converted everything that needs to be converted. I haven't done anything to the OpenGL extension declarations, but I don't believe they need any fixing up.

Also, I applied the same fix to the functions in DerelictGL's wgl.d. This isn't for the --export-dynamic problem, but for a similar issue in that the Win32 functions declared there can still cause conflicts when using other Win32 bindings in the same app. This fix should solve that.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group