Ticket #33 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Linux changes

Reported by: keinfarbton Assigned to: Derek Parnell
Priority: Must be next Component: core
Version: 3.03 Severity: major
Keywords: Cc:

Description

Several:

  • pthread as an additional default lib
  • '/co' => '-g'
  • '-of' => '-o '
  • allow .a libs to be added on commandline like object files
  • spaces between '-L' switches in the command given to gcc

Attachments

patch (3.3 kB) - added by keinfarbton on 06/30/06 15:35:37.
svn diff from revision 48

Change History

06/30/06 15:35:37 changed by keinfarbton

  • attachment patch added.

svn diff from revision 48

07/01/06 00:33:05 changed by Derek Parnell

  • owner changed from derek to Derek Parnell.
  • status changed from new to assigned.

07/28/06 18:28:49 changed by dpc

Makefile:

rdwars: *
        dbuild rdwars \
                -w -op  \
                -od.obj -Dd../../doc/html ddoc-style.ddoc \
                -Xderelict -Xstd \
                -L-lDerelictSDL \
                -L-lDerelictUtil \
                -L-lDerelictSDLMixer \
                -L-ldl

Using make command runs:

/usr/bin/gcc -lDerelictSDL -lDerelictUtil -lDerelictSDLMixer -ldl .obj/rdwars.o .obj/options.o .obj/error.o .obj/battle.o .obj/map.o .obj/player.o .obj/cell/cell.o .obj/cell/autonomous.o .obj/cell/movable.o .obj/cell/scannable.o .obj/cell/wall.o .obj/cell/spawnpoint.o .obj/cell/ground.o .obj/cell/medkit.o .obj/droid.o .obj/cell/droid.o .obj/fx.o .obj/io.o .obj/video.o .obj/audio.o .obj/fxsdl.o .obj/audionull.o .obj/audiosdl.o .obj/videosdl.o .obj/videonull.o .obj/ioconsole.o -o rdwars -lc -lphobos -lpthread -lm

but it fails because order of -l is important here. Simple moving -l arguments to the end of command (manually):

/usr/bin/gcc .obj/rdwars.o .obj/options.o .obj/error.o .obj/battle.o .obj/map.o .obj/player.o .obj/cell/cell.o .obj/cell/autonomous.o .obj/cell/movable.o .obj/cell/scannable.o .obj/cell/wall.o .obj/cell/spawnpoint.o .obj/cell/ground.o .obj/cell/medkit.o .obj/droid.o .obj/cell/droid.o .obj/fx.o .obj/io.o .obj/video.o .obj/audio.o .obj/fxsdl.o .obj/audionull.o .obj/audiosdl.o .obj/videosdl.o .obj/videonull.o .obj/ioconsole.o -o rdwars -lc -lphobos -lpthread -lm -lDerelictSDL -lDerelictUtil -lDerelictSDLMixer -ldl

will work well.

08/08/06 21:43:22 changed by Derek Parnell

  • status changed from assigned to closed.
  • version changed from 3.02 to 3.03.
  • resolution set to fixed.

Applied these changes.