View previous topic :: View next topic |
Author |
Message |
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Sun Jul 04, 2010 1:08 pm Post subject: [makefile] Derelecit and LDC |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Jul 04, 2010 7:04 pm Post subject: |
|
|
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 |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Mon Jul 05, 2010 12:40 pm Post subject: |
|
|
i have modify some makefile how i send that to you? for try it
thanks for this quick answer |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Jul 05, 2010 12:47 pm Post subject: |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Jul 25, 2010 2:07 am Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sun Jul 25, 2010 3:51 am Post subject: |
|
|
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 |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Sun Jul 25, 2010 1:41 pm Post subject: |
|
|
yes i am agree with dood point of view |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Jul 25, 2010 10:27 pm Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Jul 26, 2010 4:46 am Post subject: |
|
|
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 |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Mon Jul 26, 2010 5:02 am Post subject: |
|
|
dss project is die.
I will try fix theses makefile |
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Tue Jul 27, 2010 12:50 am Post subject: |
|
|
can you try this patch? and if it work for other compiler push to upstream. Thanks |
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Thu Jul 29, 2010 7:25 am Post subject: |
|
|
ping |
|
Back to top |
|
|
|