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

[makefile] Derelecit and LDC
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Sun Jul 04, 2010 1:08 pm    Post subject: [makefile] Derelecit and LDC Reply with quote

with ldc -lib do not exist instead 2 command line is needed:
1/ ldc *.d
2/ ar rsv *.o
with ldc you need use -od like -HD with dmd

So i think you can do some change on your makefile for support ldc
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Jul 04, 2010 7:04 pm    Post subject: Reply with quote

I'm not going to do it myself. I don't use LDC and I rarely touch Linux. If you or someone else would like to contribute makefiles for LDC, feel free.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Mon Jul 05, 2010 12:40 pm    Post subject: Reply with quote

i have modify some makefile how i send that to you? for try it
thanks for this quick answer
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Jul 05, 2010 12:47 pm    Post subject: Reply with quote

ldmd is a dmd wrapper for ldc, with that you can invoke ldc with dmd flags (don't know about -lib though). It's distributed with ldc.
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Mon Jul 05, 2010 6:05 pm    Post subject: Reply with quote

bioinfornatics wrote:
i have modify some makefile how i send that to you? for try it
thanks for this quick answer


Submit a ticket with the makefiles attached.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Sat Jul 24, 2010 1:15 pm    Post subject: Reply with quote

patch submit here: http://www.dsource.org/projects/derelict/ticket/60
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Jul 25, 2010 2:07 am    Post subject: Reply with quote

bioinfornatics wrote:
patch submit here: http://www.dsource.org/projects/derelict/ticket/60


I'm not sure I like the patch. Won't the ar and ranlib steps break compilation when compiling with DMD? Or when on windows? Can't ldmd be used instead of ldc like doob suggested?

If it's not possible to use ldmd with -lib, then we may need separate makefiles for each package when using ldc. Unless someone has a better idea.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Jul 25, 2010 3:51 am    Post subject: Reply with quote

ldmd doesn't support the -lib flag. Since we already have separate makefiles for all platforms we can change the darwin and linux makefiles to use "ar" and "ranlib". Then we create a new makefile "ldc_inc.mak" in the inc directory. Both ldc and dmd can use "ar" and "ranlib" on posix systems. We don't have to worry about ldc on windows because it's not usable anyway. Then we can create a makefile for ldc that includes ldc_inc.mak instead of dmd_inc.mak or something like that. Or can we pass an option when running make to indicate the compiler?

BTW we can merge the darwin and linux makefiles into a posix makefile, the only difference between the two files is the PLATFORM variable. The darwin_inc.mak and linux_inc.mak files are also exactly the same.
Back to top
View user's profile Send private message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Sun Jul 25, 2010 1:41 pm    Post subject: Reply with quote

yes i am agree with dood point of view
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Sun Jul 25, 2010 10:27 pm    Post subject: Reply with quote

This reminds me why I hate makefiles. I'll look at this later this week and see if I can come up with something painless.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Jul 26, 2010 4:46 am    Post subject: Reply with quote

aldacron wrote:
This reminds me why I hate makefiles. I'll look at this later this week and see if I can come up with something painless.
Same here, that's why I am/was arguing so strongly about keeping the dsss conf file.
Back to top
View user's profile Send private message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Mon Jul 26, 2010 5:02 am    Post subject: Reply with quote

dss project is die.
I will try fix theses makefile
Back to top
View user's profile Send private message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Mon Jul 26, 2010 1:24 pm    Post subject: Reply with quote

patch updated: http://www.dsource.org/projects/derelict/attachment/ticket/60/derelict-2-fix.patch
this one works (i hope)
Back to top
View user's profile Send private message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Tue Jul 27, 2010 12:50 am    Post subject: Reply with quote

can you try this patch? and if it work for other compiler push to upstream. Thanks
Back to top
View user's profile Send private message
bioinfornatics



Joined: 22 Jun 2010
Posts: 90

PostPosted: Thu Jul 29, 2010 7:25 am    Post subject: Reply with quote

ping
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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