git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #2047 from purescript/revert-2046-link-as-needed

Revert "Add --as-needed linker option to stop linking against unused shared objects"

commit88500c8291b8f10023d84e9dd862b4c4c3e7459c authorPhil Freeman <paf31@cantab.net> dateWed 20 Apr 2016, 17:15 (11 years ago) parent84f42562fc447f
1 file changed+8−13
purescript.cabal+8−13
purescript.cabal+8−13
@@ -244,7 +244,6 @@ executable psc
244244 hs-source-dirs: psc
245245 other-modules: Paths_purescript
246246 ghc-options: -Wall -O2 -fno-warn-unused-do-bind -threaded -rtsopts "-with-rtsopts=-N"
247− ld-options: -Wl,--as-needed
248247
249248executable psci
250249 build-depends: base >=4 && <5, containers -any, directory -any, filepath -any,
@@ -268,7 +267,6 @@ executable psci
268267 PSCi.Printer
269268 Paths_purescript
270269 ghc-options: -Wall -O2
271− ld-options: -Wl,--as-needed
272270
273271executable psc-docs
274272 build-depends: base >=4 && <5, purescript -any,
@@ -284,7 +282,6 @@ executable psc-docs
284282 Etags
285283 Tags
286284 ghc-options: -Wall -O2
287− ld-options: -Wl,--as-needed
288285
289286executable psc-publish
290287 build-depends: base >=4 && <5, purescript -any, bytestring -any, aeson -any, optparse-applicative -any
@@ -293,7 +290,6 @@ executable psc-publish
293290 buildable: True
294291 hs-source-dirs: psc-publish
295292 ghc-options: -Wall -O2
296− ld-options: -Wl,--as-needed
297293
298294executable psc-hierarchy
299295 build-depends: base >=4 && <5, purescript -any, optparse-applicative >= 0.12.1,
@@ -303,12 +299,13 @@ executable psc-hierarchy
303299 other-modules: Paths_purescript
304300 buildable: True
305301 hs-source-dirs: hierarchy
302+ other-modules:
306303 ghc-options: -Wall -O2
307− ld-options: -Wl,--as-needed
308304
309305executable psc-bundle
310306 main-is: Main.hs
311307 other-modules: Paths_purescript
308+ other-extensions:
312309 build-depends: base >=4 && <5,
313310 purescript -any,
314311 filepath -any,
@@ -318,13 +315,13 @@ executable psc-bundle
318315 transformers-compat -any,
319316 optparse-applicative >= 0.12.1,
320317 Glob -any
321− hs-source-dirs: psc-bundle
322318 ghc-options: -Wall -O2
323− ld-options: -Wl,--as-needed
319+ hs-source-dirs: psc-bundle
324320
325321executable psc-ide-server
326322 main-is: Main.hs
327323 other-modules: Paths_purescript
324+ other-extensions:
328325 build-depends: base >=4 && <5
329326 , purescript -any
330327 , directory -any
@@ -338,22 +335,21 @@ executable psc-ide-server
338335 , stm -any
339336 , text -any
340337 , base-compat >=0.6.0
341− hs-source-dirs: psc-ide-server
342338 ghc-options: -Wall -O2 -threaded
343− ld-options: -Wl,--as-needed
339+ hs-source-dirs: psc-ide-server
344340
345341executable psc-ide-client
346342 main-is: Main.hs
347343 other-modules: Paths_purescript
344+ other-extensions:
348345 build-depends: base >=4 && <5
349346 , mtl -any
350347 , text -any
351348 , optparse-applicative >= 0.12.1
352349 , network -any
353350 , base-compat >=0.6.0
354− hs-source-dirs: psc-ide-client
355351 ghc-options: -Wall -O2
356− ld-options: -Wl,--as-needed
352+ hs-source-dirs: psc-ide-client
357353
358354test-suite tests
359355 build-depends: base >=4 && <5, containers -any, directory -any,
@@ -363,6 +359,7 @@ test-suite tests
363359 base-compat -any, haskeline >= 0.7.0.0, optparse-applicative -any,
364360 boxes -any, HUnit -any, hspec -any, hspec-discover -any, stm -any, text -any,
365361 vector -any, utf8-string -any
362+ ghc-options: -Wall
366363 type: exitcode-stdio-1.0
367364 main-is: Main.hs
368365 other-modules: TestUtils
@@ -386,5 +383,3 @@ test-suite tests
386383 PSCi.Types
387384 buildable: True
388385 hs-source-dirs: tests psci
389− ghc-options: -Wall
390− ld-options: -Wl,--as-needed